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 r.david.murray
Recipients Kevin Bonham, r.david.murray
Date 2017-01-11.19:55:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1484164509.31.0.758115769835.issue29245@psf.upfronthosting.co.za>
In-reply-to
Content
Yes, it is intended behavior, and it is documented.  The default mode for NamedTemporaryFile (and TemporaryFile) is shown in the docs as "w+b".

I suppose that used to be more convenient in python2 where there was almost no distinction between binary and text on unix, but I think we are unlikely to change the default at this point.
History
Date User Action Args
2017-01-11 19:55:09r.david.murraysetrecipients: + r.david.murray, Kevin Bonham
2017-01-11 19:55:09r.david.murraysetmessageid: <1484164509.31.0.758115769835.issue29245@psf.upfronthosting.co.za>
2017-01-11 19:55:09r.david.murraylinkissue29245 messages
2017-01-11 19:55:09r.david.murraycreate