[Python-3000] Support for newline and encoding arguments to open in tempfile module, also mktemp deprecation
Adam Hupp
adam at hupp.org
Mon Aug 27 03:00:44 CEST 2007
It would be useful to support 'newline' and 'encoding' arguments in
tempfile.TemporaryFile and friends. These new arguments would be
passed directly into io.open. I've uploaded a patch for this to:
http://bugs.python.org/issue1033
The 'bufsize' argument to os.fdopen has changed to 'buffering' so I
went ahead and made the same change to TemporaryFile etc. Is this a
desirable?
While in tempfile, I noticed that tempfile.mktemp() has the following comment:
"This function is unsafe and should not be used."
The docs list it as "Deprecated since release 2.3". Should it be
removed in py3k?
--
Adam Hupp | http://hupp.org/adam/
More information about the Python-3000
mailing list