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 lopgok
Recipients benjamin.peterson, lopgok
Date 2008-12-08.04:45:24
SpamBayes Score 0.0017605139
Marked as misclassified No
Message-id <1228711526.13.0.559912660442.issue4588@psf.upfronthosting.co.za>
In-reply-to
Content
Doesn't work.
#!/usr/bin/env python3.0

import sys
foo = b''

for i in range (0,10):
    foo += bytes(i)

sys.stdout.buffer.write(foo)

produces a binary file of 45 bytes. Here is a hex dump (the '.'
represent unprintable characters):
+000    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ................
+016    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     ................
+032    00 00 00 00 00 00 00 00 00 00 00 00 00              .............

that is 45 bytes of 0.
History
Date User Action Args
2008-12-08 04:45:26lopgoksetrecipients: + lopgok, benjamin.peterson
2008-12-08 04:45:26lopgoksetmessageid: <1228711526.13.0.559912660442.issue4588@psf.upfronthosting.co.za>
2008-12-08 04:45:25lopgoklinkissue4588 messages
2008-12-08 04:45:24lopgokcreate