Message2842
Here is the tempfile module, actually from Python 2.5.1 (which doesn't offer that many changes over 2.3)
It's been updated to:
o make mkdtemp work (this supercedes ticket #1755344)
o make mkstemp work as much as it can. A secure file is created via java's File.createTempFile method (this essentially uses O_EXCL | O_CREAT under the covers, to ensure the file didn't already exist)
The problem with mkstemp is it returns a tuple (fd, filename). We obviously can't support returning a file descriptor, so we return None instead
o make [Named]TemporaryFile work with mkstemp without file descriptors
test_tempfile.py from 2.5.1 is also included. It required a couple changes to fix Jythonisms -- in particular the mkstemp test was disabled because it operates on a file descriptor. All tests pass |
|
Date |
User |
Action |
Args |
2008-02-20 17:18:48 | admin | link | issue1783692 messages |
2008-02-20 17:18:48 | admin | create | |
|