bussiere maillist wrote: > DeprecationWarning: struct integer overflow masking is deprecated > return struct.pack('>H', ~value) > i didn't understand if someone have some explanation > and what uses instead.
the value doesn't fit in 16 bits. try masking off the extra bits on the way in: struct.pack("<H", (~value) & 0xFFFF) </F> -- http://mail.python.org/mailman/listinfo/python-list