31 Oct
2012
31 Oct
'12
10:44 a.m.
Hi, I wonder why Python uses signed chars for bytes http://docs.python.org/2/library/ctypes.html#ctypes.c_byte This is a Java thing, but Java doesn't have unsigned types at all http://en.wikipedia.org/wiki/Criticism_of_Java#Unsigned_integer_types Windows implements BYTE as unsigned char, and it is in the same line as WORD, DWORD etc. The way you look at memory contents in assembly. byte type is also unsigned in .NET platform for all languages implementes, and also has a sbyte counterpart. When working with bytes in decimal system it is much more convenient to operate with strictly positive values than with -128 - 127 (or is it -127 to 128?) -- anatoly t.