This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Rhamphoryncus
Recipients
Date 2006-12-20.18:42:37
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
>>> htonl(-5)
-67108865
>>> htonl(-5L)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
OverflowError: can't convert negative value to unsigned long

It works fine in 2.1 and 2.2, but fails in 2.3, 2.4, 2.5.  htons, ntohs do not appear to have the bug, but I'm not 100% sure.
History
Date User Action Args
2007-08-23 14:50:48adminlinkissue1619659 messages
2007-08-23 14:50:48admincreate