- 16 Haz, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
-
- 11 May, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
and the DOS error code in errno. Revert changes where WindowsError catch blocks unnecessarily special-case OSError.
-
- 06 May, 2006 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
-
- 11 Ock, 2005 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
Clarified that the returned object is file-like rather than an actual file.
-
- 18 Tem, 2004 1 kayıt (commit)
-
-
Tim Peters yazdı
another hack remains in test___all__.py, but the problem that one addresses is more general than *just* FCNTL, so leaving it alone.
-
- 10 Kas, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
the file is a symlink. Instead, use os.lstat directly, if it exists; fall back on os.stat or the built-in open. Thanks to Iustin Pop.
-
- 09 Kas, 2003 1 kayıt (commit)
-
-
Alex Martelli yazdı
(same as commit of Sun Nov 2 to the release23-maint branch)
-
- 12 Eki, 2003 1 kayıt (commit)
-
-
Martin v. Löwis yazdı
This should not be backported to 2.3, as it might break backwards compatibility.
-
- 22 Tem, 2003 1 kayıt (commit)
-
-
Tim Peters yazdı
are satisfied in a case-insensitive manner, the attempt to import (the non-existent) fcntl gets satisfied by FCNTL.py instead, and the tempfile module defines a Unix-specific _set_cloexec() function in that case. As a result, temp files can't be created then (blows up with an AttributeError trying to reference fcntl.fcntl). This just popped up in the spambayes project, where there is no apparent workaround (which is why I'm pushing this in now).
-
- 21 Mar, 2003 1 kayıt (commit)
-
-
Jack Jansen yazdı
-
- 30 Ara, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
tempfile.py already contained code to let it run without threads present; for Queue.py this is considered a useful feature too.
-
- 22 Kas, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
often unavoidable.
-
- 21 Kas, 2002 2 kayıt (commit)
-
-
Tim Peters yazdı
put more in the critical section than absolutely needed, acquire the mutex before the "try".
-
Tim Peters yazdı
-
- 17 Agu, 2002 1 kayıt (commit)
-
-
Guido van Rossum yazdı
Also, don't call gettempdir() in the default expression for the 'dir' argument to various functions; use 'dir=None' for the default and insert 'if dir is None: dir = gettemptir()' in the bodies. That way the work done by gettempdir is postponed until needed.
-
- 14 Agu, 2002 3 kayıt (commit)
-
-
Tim Peters yazdı
binary=True to text=False by BDFL Pronouncement. All other changes follow from this. The change to the docs is ready to go, but blocked by another JackMacLock in the doc directory.
-
Jason Tishler yazdı
Although Cygwin attempts to be as Posix compliant as possible, it has difficulties unlinking open files. This is not surprising given that Cygwin is dependent on Win32 which in turn has this problem itself. The attached tempfile patch acknowledges this Cygwin limitation. Without this patch, Cygwin fails test_tempfile (i.e., test_has_no_name) as follows: $ ./python -E -tt ../Lib/test/regrtest.py -l test_tempfile test_tempfile test test_tempfile failed -- Traceback (most recent call last): File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 689, in test_has_no_name self.failOnException("rmdir", ei) File "/home/jt/src/PythonCvs/Lib/test/test_tempfile.py", line 33, in failOnException self.fail("%s raised %s: %s" % (what, ei[0], ei[1])) File "/home/jt/src/PythonCvs/Lib/unittest.py", line 260, in fail raise self.failureException, msg AssertionError: rmdir raised exceptions.OSError: [Errno 90] Directory not empty: '/mnt/c/DOCUME~1/jatis/LOCALS~1/Temp/tmpM_z8nj'
-
Tim Peters yazdı
was reversed).
-
- 13 Agu, 2002 5 kayıt (commit)
-
-
Tim Peters yazdı
Boolean, so changed its default value from 1 to True.
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Tim Peters yazdı
-
Tim Peters yazdı
-
- 09 Agu, 2002 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Guido van Rossum yazdı
rewrite, by Zack Weinberg). This replaces most code in tempfile.py (please review!!!) and adds extensive unit tests for it. This will cause some warnings in the test suite; I'll check those in soon, and also the docs.
-
- 01 Haz, 2002 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
-
- 24 Mar, 2002 1 kayıt (commit)
-
-
Neil Schemenauer yazdı
TemporaryFile. This flag causes the fd to be closed on exec().
-
- 30 Ock, 2002 2 kayıt (commit)
-
-
Tim Peters yazdı
uses _DummyMutex on platforms without threads.
-
Tim Peters yazdı
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>.
-
- 28 Ock, 2002 1 kayıt (commit)
-
-
Tim Peters yazdı
This is an ancient race when multiple threads call gettempdir() (or anything relying on it) for the first time. Fixed x-platform via the Big Hammer of rearranging the code to serialize the first calls. Subsequent calls are as fast as before. Note that the Python test suite can't provoke this bug: it requires setting up multiple threads making the very first calls into tempfile, but the test suite uses tempfile several times before getting to test_threadedtempfile. Bugfix candidate.
-
- 18 Ara, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Tim Peters yazdı
to prevent mysterious errors at shutdown due to "os.unlink" turning into "None.unlink".
-
- 29 Eki, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.
-
- 24 Eki, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 02 Mar, 2001 1 kayıt (commit)
-
-
Guido van Rossum yazdı
SF patch #404564, Gregor Hoffleit.
-
- 01 Mar, 2001 1 kayıt (commit)
-
-
Skip Montanaro yazdı
giving it a slight facelift
-
- 19 Şub, 2001 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
-
- 15 Ock, 2001 1 kayıt (commit)
-
-
Tim Peters yazdı
-
- 14 Ock, 2001 2 kayıt (commit)
-
-
Tim Peters yazdı
-
Tim Peters yazdı
-