Message285268
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. |
|
Date |
User |
Action |
Args |
2017-01-11 19:55:09 | r.david.murray | set | recipients:
+ r.david.murray, Kevin Bonham |
2017-01-11 19:55:09 | r.david.murray | set | messageid: <1484164509.31.0.758115769835.issue29245@psf.upfronthosting.co.za> |
2017-01-11 19:55:09 | r.david.murray | link | issue29245 messages |
2017-01-11 19:55:09 | r.david.murray | create | |
|