Re: deprecated python 2.5

2006-09-12 Thread bussiere maillist
thks Regards Bussiere On 9/12/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > 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.

Re: deprecated python 2.5

2006-09-12 Thread Fredrik Lundh
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:

Re: deprecated python 2.5

2006-09-12 Thread John Machin
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. Which 2.5 are you using? Mine (2.5c1, win32) gives me *TWO* messages, the second of whi

deprecated python 2.5

2006-09-12 Thread bussiere maillist
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. -- http://mail.python.org/mailman/listinfo/python-list