]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
News about the tempfile rewrite.
authorGuido van Rossum <guido@python.org>
Fri, 9 Aug 2002 17:16:30 +0000 (17:16 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 9 Aug 2002 17:16:30 +0000 (17:16 +0000)
Misc/NEWS

index d92d0f224e4b417332ec7f8b1846d52dfbd2752a..57eda69e4bbb873ea6897153db8c22f158005e7b 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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