The mkstemp() function in the rewritten tempfile has an argument with a curious name and default: binary=True. This caused confusion (even the docstring in the original patch was confused :-). It would be much easier to explain if this was changed to text=False. That is, to deviate from the default mode, i.e. use text mode, you'll have to write mkstemp(text=True) rather than mkstemp(binary=False). This might require a few changes to the standard library and to anybody's code who has aggressively started using this, but given the freshness of the patch I think that's OK. If anybody sees a good reason *not* to do this, please let me know (here or on the SF patch, python.org/sf/589982). --Guido van Rossum (home page: http://www.python.org/~guido/)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4