[Python-Dev] Warn about mktemp once again?
Bill Janssen
janssen at parc.com
Wed May 7 17:36:55 CEST 2008
> On win32 it will usually (but not always) provide a file name in a directory
> writeable only by the current user.
OS X 10.5 also does this.
>>> import tempfile
>>> tempfile.mktemp()
'/var/folders/Ru/RuapMUan2RWWJ++1YwBnRU++0T6/-Tmp-/tmpjjkKha'
>>> os.system("ls -dl /var/folders/Ru/RuapMUan2RWWJ++1YwBnRU++0T6/-Tmp-")
drwx------ 2 wjanssen 100 68 May 7 08:34 /var/folders/Ru/RuapMUan2RWWJ++1YwBnRU++0T6/-Tmp-
0
>>>
Bill
More information about the Python-Dev
mailing list