]> granicus.if.org Git - python/commit
New TemporaryFile implementation for Windows: this doesn't need a
authorTim Peters <tim.peters@gmail.com>
Wed, 30 Jan 2002 07:47:51 +0000 (07:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Wed, 30 Jan 2002 07:47:51 +0000 (07:47 +0000)
commitc7349ee2c6863263eef4d48ee19f741e6d2244be
tree7ed263adb4db15608ccdb543dd5569940f3ce742
parentd9fbf353a19d058dcb0170174115fc488d9fe37d
New TemporaryFile implementation for Windows:  this doesn't need a
TemproraryFileWrapper wrapper anymore, and should be immune from the
problem that a temp file inherited by a spawned process caused an
attempt to close the temp file in the spawning process to blow
up (the unlink in TemporaryFileWrapper.close() blew up with a
"Permission denied" error because, despite that the temp file got
closed in the spawning process, the spawned process still had it open
by virtue of C-level file descriptor inheritance).  In context,
that bug took days to figure out <wink/sigh>.
Lib/tempfile.py