[Python-checkins] python/dist/src/Misc NEWS,1.457,1.458
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
2002年8月09日 10:16:32 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv13198
Modified Files:
NEWS
Log Message:
News about the tempfile rewrite.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.457
retrieving revision 1.458
diff -C2 -d -r1.457 -r1.458
*** NEWS 9 Aug 2002 15:57:34 -0000 1.457
--- NEWS 9 Aug 2002 17:16:30 -0000 1.458
***************
*** 7,10 ****
--- 7,20 ----
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