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 steven.daprano
Recipients Padmanabhan.Tr, steven.daprano
Date 2015-07-02.16:50:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1435855840.11.0.842083565747.issue24551@psf.upfronthosting.co.za>
In-reply-to
Content
I don't know, what *is* the problem? What behaviour did you expect? The code sample you show seems to be working exactly as it is supposed to.

b'\x00\x00 0' is the same as b'\x00\x00\x20\x30', and that is the same as b'\x20\x30' with NUL padding on the left. Written as integers, that is like 0x00002030 == 0x2030 == 8240.

I don't think this demonstrates a bug or problem. If you still believe it does, please re-open the issue with a detailed description of what behaviour you expected and why you think this is a bug.
History
Date User Action Args
2015-07-02 16:50:40steven.dapranosetrecipients: + steven.daprano, Padmanabhan.Tr
2015-07-02 16:50:40steven.dapranosetmessageid: <1435855840.11.0.842083565747.issue24551@psf.upfronthosting.co.za>
2015-07-02 16:50:40steven.dapranolinkissue24551 messages
2015-07-02 16:50:39steven.dapranocreate