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 eric.araujo
Recipients eric.araujo, ezio.melotti, techtonik
Date 2013-04-28.16:12:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367165562.33.0.883592988706.issue17859@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t understand that the first message says.

If one wants to call the write method of a file object opened in binary mode, one needs to pass bytes, as the doc surely explains.  The same error that is seen here with ints would be seen with any other objects.  A more practical way is to use print (with its file, sep and end parameters) which will do the conversion for you.
History
Date User Action Args
2013-04-28 16:12:42eric.araujosetrecipients: + eric.araujo, techtonik, ezio.melotti
2013-04-28 16:12:42eric.araujosetmessageid: <1367165562.33.0.883592988706.issue17859@psf.upfronthosting.co.za>
2013-04-28 16:12:42eric.araujolinkissue17859 messages
2013-04-28 16:12:42eric.araujocreate