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 mthibaut
Recipients mthibaut
Date 2007-12-30.21:30:44
SpamBayes Score 0.027724745
Marked as misclassified No
Message-id <1199050245.75.0.972014457431.issue1711@psf.upfronthosting.co.za>
In-reply-to
Content
Socket library functions such as ntohs() return uint16_t, but inside
Python these return values show up as negative numbers. One possible fix
is to convert these return values using pack:

struct.unpack('H', struct.pack('h', ntohs(number)))[0] & 0xffff
History
Date User Action Args
2007-12-30 21:30:46mthibautsetspambayes_score: 0.0277247 -> 0.027724745
recipients: + mthibaut
2007-12-30 21:30:45mthibautsetspambayes_score: 0.0277247 -> 0.0277247
messageid: <1199050245.75.0.972014457431.issue1711@psf.upfronthosting.co.za>
2007-12-30 21:30:45mthibautlinkissue1711 messages
2007-12-30 21:30:45mthibautcreate