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 christian.heimes, giampaolo.rodola, gvanrossum, mthibaut
Date 2008-01-01.21:40:07
SpamBayes Score 0.23406069
Marked as misclassified No
Message-id <1199223608.12.0.898348270275.issue1711@psf.upfronthosting.co.za>
In-reply-to
Content
Guido, the problem is that my python foo is severely lacking - but I'll
have a stab at it.

Python believes that the number coming back from the C library is
negative. We can fool it by packing the "signed short" into a
system-native format, and then unpacking it explicitly into an unsigned
short. So I propose to do precisely that on big endian systems using
sys.byteorder: wrap these functions with a converter. Would that be
acceptible?
History
Date User Action Args
2008-01-01 21:40:08mthibautsetspambayes_score: 0.234061 -> 0.23406069
recipients: + mthibaut, gvanrossum, giampaolo.rodola, christian.heimes
2008-01-01 21:40:08mthibautsetspambayes_score: 0.234061 -> 0.234061
messageid: <1199223608.12.0.898348270275.issue1711@psf.upfronthosting.co.za>
2008-01-01 21:40:08mthibautlinkissue1711 messages
2008-01-01 21:40:07mthibautcreate