diff options
author | Guido van Rossum <guido@python.org> | 2002-08-09 17:16:30 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-08-09 17:16:30 (GMT) |
commit | deb0936795bed5febcd5850755cf50d5b97836be (patch) | |
tree | 1bf3e82ed12d7cb59f02be679faec1f86e59ea35 /Misc | |
parent | 3b0a3293c369f3c3f4753e3cb9172cb4e242af76 (diff) | |
download | cpython-deb0936795bed5febcd5850755cf50d5b97836be.zip cpython-deb0936795bed5febcd5850755cf50d5b97836be.tar.gz cpython-deb0936795bed5febcd5850755cf50d5b97836be.tar.bz2 |
News about the tempfile rewrite.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -6,6 +6,16 @@ Type/class unification and new-style classes Core and builtins +- The tempfile module has been overhauled for enhanced security. The + mktemp() function is now deprecated; new, safe replacements are + mkstemp() (for files) and mkdtemp() (for directories), and the + higher-level functions NamedTemporaryFile() and TemporaryFile(). + Use of some global variables in this module is also deprecated; the + new functions have keyword arguments to provide the same + functionality. All Lib, Tools and Demo modules that used the unsafe + interfaces have been updated to use the safe replacements. Thanks + to Zack Weinberg! + - When x is an object whose class implements __mul__ and __rmul__, 1.0*x would correctly invoke __rmul__, but 1*x would erroneously invoke __mul__. This was due to the sequence-repeat code in the int |