summaryrefslogtreecommitdiffstats
path: root/Lib/tempfile.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-27300: Add the errors parameter to tempfile classes. (GH-6696)sth2018-05-231-19/+16
|
* bpo-33522: Enable CI builds on Visual Studio Team Services (#6865)Steve Dower2018-05-161-1/+3
|
* Update docstring of tempfile._RandomNameSequence (GH-6414)Wolfgang Maier2018-04-091-1/+1
| | | | | When bpo-12015 got resolved by increasing the length of the random string generated by _RandomNameSequence from six to eight characters, the docstring of the class was not adjusted accordingly.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-5/+1
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-30030: Revert f50354ad (tempfile) (#1187)Victor Stinner2017-04-191-12/+23
| | | | Revert f50354adaaafebe95ad09d09b825804a686ea843: it introduced a regression in test_threadedtempfile.
* Reimplement tempfile._RandomNameSequence using a generator function. (#1075)Serhiy Storchaka2017-04-111-23/+12
|
* Add a source parameter to warnings.warn()Victor Stinner2016-03-221-1/+0
| | | | | | | | Issue #26604: * Add a new optional source parameter to _warnings.warn() and warnings.warn() * Modify asyncore, asyncio and _pyio modules to set the source parameter when logging a ResourceWarning warning
* Issue #26385: Cleanup NamedTemporaryFile if open() fails, by SilentGhostMartin Panter2016-02-281-1/+2
|
* Issue #26261: Clarify NamedTemporaryFile name attribute vs file.nameMartin Panter2016-02-221-2/+2
|
* Issue #25064: Adjust documentation according to new mkstemp signatureMartin Panter2015-11-071-8/+9
| | | | | | | | The mkstemp() and mkdtemp() signatures have already been updated, but the higher-level functions still suggest that the default values are forced to text strings. Also merged some paragraphs describing the "suffix" and "prefix" parameters, and pointed out that mktemp() does not support the new changes.
* Issue #21515: Elaborate tempfile.TemporaryFile() commentVictor Stinner2015-10-201-2/+10
| | | | | Explain why calling os.open() with os.O_TMPFILE is a safe test to check if O_TMPFILE is supported by the running kernel.
* Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dirGregory P. Smith2015-05-221-26/+89
| | | | parameters and returns bytes in such situations (matching the os module APIs).
* Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try againSerhiy Storchaka2015-05-191-1/+17
|\ | | | | | | | | | | when a directory with the chosen name already exists on Windows as well as on Unix. tempfile.mkstemp() now fails early if parent directory is not valid (not exists or is a file) on Windows.
| * Issue #22107: tempfile.gettempdir() and tempfile.mkdtemp() now try againSerhiy Storchaka2015-05-191-1/+17
| | | | | | | | | | | | when a directory with the chosen name already exists on Windows as well as on Unix. tempfile.mkstemp() now fails early if parent directory is not valid (not exists or is a file) on Windows.
* | Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-3/+5
|\ \ | |/ | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
| * Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-3/+5
| | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* | Merge: #23700: fix/improve commentR David Murray2015-03-221-2/+4
|\ \ | |/
| * #23700: fix/improve commentR David Murray2015-03-221-2/+4
| |
* | Issue #23700: NamedTemporaryFile iterator closed underlied file object inSerhiy Storchaka2015-03-201-3/+5
|\ \ | |/ | | | | | | | | some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
| * Issue #23700: NamedTemporaryFile iterator closed underlied file object inSerhiy Storchaka2015-03-201-3/+5
| | | | | | | | | | | | some circunstances while NamedTemporaryFile object was living. This causes failing test_csv. Changed the implementation of NamedTemporaryFile.__iter__ to make tests passed.
* | Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-191-1/+3
|\ \ | |/ | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
| * Issue #23700: Iterator of NamedTemporaryFile now keeps a reference toSerhiy Storchaka2015-03-191-1/+3
| | | | | | | | NamedTemporaryFile instance. Patch by Bohuslav Kabrda.
| * tempfile: Fix docstring. Issue #21397, patch by R. David Murray.Yury Selivanov2014-09-261-5/+5
| |
* | tempfile: Fix docstring. Issue #21397, patch by R. David Murray.Yury Selivanov2014-09-261-5/+5
| |
* | Issue #22427: TemporaryDirectory no longer attempts to clean up twice whenSerhiy Storchaka2014-09-241-12/+3
|\ \ | |/ | | | | used in the with statement in generator.
| * Issue #22427: TemporaryDirectory no longer attempts to clean up twice whenSerhiy Storchaka2014-09-241-12/+3
| | | | | | | | used in the with statement in generator.
* | Issue #21515: Fix typo in a comment, thanks Arfrever for the reportVictor Stinner2014-06-081-1/+1
| |
* | Issue #21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is availableVictor Stinner2014-06-051-0/+26
|/
* Issue #21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(),Victor Stinner2014-03-251-3/+7
| | | | close the file descriptor if io.open() fails
* Issue #20978: pyflakes: fix undefined namesVictor Stinner2014-03-201-1/+1
|
* Remove redundant emty line at the end of file.Serhiy Storchaka2014-01-271-1/+0
|
* Issue #19077: tempfile.TemporaryDirectory cleanup no longer fails whenSerhiy Storchaka2014-01-271-62/+30
|\ | | | | | | | | called during shutdown. Emitting resource warning in __del__ no longer fails. Original patch by Antoine Pitrou.
| * Issue #19077: tempfile.TemporaryDirectory cleanup is now most likelySerhiy Storchaka2014-01-271-49/+46
| | | | | | | | | | | | successful when called during nulling out of modules during shutdown. Misleading exception no longer raised when resource warning is emitted during shutdown.
* | Issue #18879: When a method is looked up on a temporary file, avoid closing ↵Antoine Pitrou2013-12-211-32/+64
|\ \ | |/ | | | | the file before the method is possibly called.
| * Issue #18879: When a method is looked up on a temporary file, avoid closing ↵Antoine Pitrou2013-12-211-32/+64
| | | | | | | | the file before the method is possibly called.
* | Issue14255 Don't flatten case of tempdirTim Golden2013-10-251-1/+1
| |
* | Issue #18849: Fixed a Windows-specific tempfile bug where collision with anEli Bendersky2013-09-061-0/+7
|\ \ | |/ | | | | | | existing directory caused mkstemp and related APIs to fail instead of retrying. Report and fix by Vlad Shcherbina.
| * Issue #18849: Fixed a Windows-specific tempfile bug where collision with anEli Bendersky2013-09-061-0/+7
| | | | | | | | | | existing directory caused mkstemp and related APIs to fail instead of retrying. Report and fix by Vlad Shcherbina.
* | Issue #18743: Fix references to non-existant "StringIO" moduleSerhiy Storchaka2013-08-291-1/+1
|\ \ | |/ | | | | in docstrings and comments.
| * Issue #18743: Fix references to non-existant "StringIO" moduleSerhiy Storchaka2013-08-291-1/+1
| | | | | | | | in docstrings and comments.
* | Issue #18571: Implementation of the PEP 446: file descriptors and file handlesVictor Stinner2013-08-271-24/+2
| | | | | | | | | | are now created non-inheritable; add functions os.get/set_inheritable(), os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
* | #18705: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | Close #12015: The tempfile module now uses a suffix of 8 random charactersVictor Stinner2013-08-131-1/+1
| | | | | | | | | | | | instead of 6, to reduce the risk of filename collision. The entropy was reduced when uppercase letters were removed from the charset used to generate random characters.
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-2/+2
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-2/+2
| | | | | | | | ModuleNotFoundError.
* | Fix for issue #16800: Use buffered write to handle EINTR.Serhiy Storchaka2013-02-121-2/+2
|\ \ | |/
| * Fix for issue #16800: Use buffered write to handle EINTR.Serhiy Storchaka2013-02-121-2/+2
| |\
| | * Fix for issue #16800: Use buffered write to handle EINTR.Serhiy Storchaka2013-02-121-2/+2
| | |
* | | Issue #16800: tempfile.gettempdir() no longer left temporary files whenSerhiy Storchaka2013-02-121-5/+8
|\ \ \ | |/ / | | | | | | the disk is full. Original patch by Amir Szekely.