python and overflowing byte?

Posted by Meloun on Stack Overflow See other posts from Stack Overflow or by Meloun
Published on 2010-06-05T11:52:32Z Indexed on 2010/06/05 12:02 UTC
Read the original article Hit count: 171

Filed under:
|
|

Hi all, I need to make a variable with similar behaviour like in C lanquage. I need byte or unsigned char with range 0-255. This variable should overflow, that means...

myVar = 255
myVar += 1

print myVar #!!myVar = 0!!

© Stack Overflow or respective owner

Related posts about python

Related posts about variable