you're absolutely correct, i apologize.
Skip Montanaro <skip@pobox.com> added the comment:
What platform are you on? Did you open the output file in
binary mode? I sort of suspect you failed to add 'b' to the
file mode and are getting a text file.
----------
nosy: +skip.montanaro
__________________________________
Tracker <report@bugs.python.org>
<http://bugs.python.org/issue2640>
__________________________________