summaryrefslogtreecommitdiffstats
path: root/Doc/library/tempfile.rst
Commit message (Collapse)AuthorAgeFilesLines
* bpo-39498 Start linking the security warnings in the stdlib modules (GH-18272)Anthony Shaw2021-08-091-0/+1
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* bpo-4928: Document NamedTemporaryFile non-deletion after SIGKILL (#26198)Catherine Devlin2021-05-191-0/+3
| | | | | | | * bpo-4928 Document NamedTemporaryFile non-deletion after SIGKILL * 📜🤖 Added by blurb_it. Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
* bpo-40701: doc typo historcal -> historical (GH-25334)Gregory P. Smith2021-04-101-1/+1
|
* bpo-29982: Add "ignore_cleanup_errors" param to ↵CAM Gerlach2021-03-141-3/+12
| | | | tempfile.TemporaryDirectory() (GH-24793)
* bpo-40701: tempfile mixes str and bytes in an inconsistent manner (GH-20442)Eric L2021-03-031-2/+19
| | | | | | | | | | | The case of tempfile.tempdir variable being bytes is now handled consistently. The getters return the right type and no more error of mixing str and bytes unless explicitly caused by the user. Adds a regression test. Expands the documentation to clarify the behavior. Co-authored-by: Eric L <ewl+git@lavar.de> Co-authored-by: Gregory P. Smith <greg@krypto.org>
* bpo-33239: Fix default value of 'buffering' parameter in docs of tempfile.* ↵Sergey Fedoseev2020-09-131-3/+3
| | | | | | | | | | | | | | | | | functions (GH-21763) `None` doesn't work: ```python >>> import tempfile >>> tempfile.TemporaryFile(buffering=None) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/sergey/tmp/cpython-dev/Lib/tempfile.py", line 607, in TemporaryFile return _io.open(fd, mode, buffering=buffering, TypeError: 'NoneType' object cannot be interpreted as an integer ``` Automerge-Triggered-By: @vsajip
* bpo-41410: Fix outdated info in mkstemp docs (GH-21701)Rishav Kundu2020-08-141-3/+2
| | | Automerge-Triggered-By: @ericvsmith
* bpo-26730: Fix SpooledTemporaryFile data corruption (GH-17400)Inada Naoki2019-11-271-2/+2
| | | | | | | SpooledTemporaryFile.rollback() might cause data corruption when it is in text mode. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com>
* bpo-35803: Document and test dir=PathLike for tempfile (GH-11644)Anthony Sottile2019-09-091-0/+6
| | | Co-Authored-By: Ammar Askar <ammar_askar@hotmail.com>
* bpo-37390: Add audit event table to documentations (GH-14406)Steve Dower2019-06-271-5/+5
| | | Also updates some (unreleased) event names to be consistent with the others.
* bpo-37363: Add audit events for a range of modules (GH-14301)Steve Dower2019-06-241-0/+10
|
* bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)Serhiy Storchaka2018-12-191-1/+1
|
* Clarified the tempfile.tempdir documentation (GH-7829)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2018-06-211-1/+1
|
* bpo-27300: Add the errors parameter to tempfile classes. (GH-6696)sth2018-05-231-4/+13
|
* tempfile.rst: Fix some typos (GH-610)Jelle Zijlstra2017-03-111-2/+2
|
* Issue #22558: Add remaining doc links to source code for Python-coded modules.Terry Jan Reedy2016-06-111-5/+3
| | | | | Reformat header above separator line (added if missing) to a common format. Patch by Yoni Lavi.
* Fix spelling (inital), grammar (may translates) in documentation, commentsMartin Panter2016-04-191-1/+1
|
* Issue #26261: Clarify NamedTemporaryFile name attribute vs file.nameMartin Panter2016-02-221-1/+2
|
* Issue #25064: Adjust documentation according to new mkstemp signatureMartin Panter2015-11-071-19/+17
| | | | | | | | 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 #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
|\
| * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
* | Issue #23725: Overhaul tempfile docs.Robert Collins2015-08-121-66/+89
| | | | | | | | Patch from Zbigniew Jędrzejewski-Szmek.
* | Issue 24230: The tempfile module now accepts bytes for prefix, suffix and dirGregory P. Smith2015-05-221-2/+35
| | | | | | | | parameters and returns bytes in such situations (matching the os module APIs).
* | merge with 3.4Georg Brandl2014-10-311-1/+1
|\ \ | |/
| * #22613: minor other fixes in library docs (thanks Jacques Ducasse)Georg Brandl2014-10-311-1/+1
| |
* | Issue #21515: tempfile.TemporaryFile now uses os.O_TMPFILE flag is availableVictor Stinner2014-06-051-0/+7
|/
* #14515: clarify that TemporaryDirectory's __enter__ returns the name.R David Murray2014-02-051-4/+6
|
* Issue #18743: Fix references to non-existant "StringIO" module.Serhiy Storchaka2013-08-161-1/+1
|
* #17271: merge with 3.2.Ezio Melotti2013-02-221-4/+3
|\
| * #17271: update example in tempfile docs.Ezio Melotti2013-02-221-4/+3
| |
* | Minor fix of previous commit.Serhiy Storchaka2013-02-091-1/+1
|\ \ | |/
| * Minor fix of previous commit.Serhiy Storchaka2013-02-091-1/+1
| |
* | Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation.Serhiy Storchaka2013-02-091-3/+5
|\ \ | |/
| * Issue #17147. Mention BytesIO in SpooledTemporaryFile documentation.Serhiy Storchaka2013-02-091-3/+5
| |
* | #9957: document that SpooledTemporaryFile.truncate now accepts a size argR David Murray2012-10-061-0/+3
|\ \ | |/
| * #9957: document that SpooledTemporaryFile.truncate does not take size argR David Murray2012-10-061-1/+2
| |
* | Merge from 3.2 . Replace the term members with correct and appropriate ↵Senthil Kumaran2011-07-041-2/+2
|\ \ | |/ | | | | terminology. Initial patch by Adam Woodbeck.
| * issue10403 - Let's not use members anymore. Use 'attribute' where it denotes ↵Senthil Kumaran2011-07-041-2/+2
| | | | | | | | attribute and 'methods' where it denotes methods. Context should clarify usage.
* | #10354: remove last public mentions of 'template' and comment as private.R David Murray2011-06-231-1/+1
|/ | | | | | I didn't rename the variable because I can see no good reason to break backward compatibility just to put an underscore in the name.
* Issue #11818: Fix tempfile examples for Python 3.Ross Lagerwall2011-04-101-5/+5
|
* More source links.Raymond Hettinger2011-01-271-0/+4
|
* Issue 5178: Add tempfile.TemporaryDirectory (original patch by Neil Schemenauer)Nick Coghlan2010-10-241-1/+52
|
* Add cross-references to the glossary entry for file objects.Antoine Pitrou2010-09-151-1/+1
|
* Fix signatures for the various TemporaryFile class^Wfunctions.Georg Brandl2010-05-211-6/+5
|
* Last round of adapting style of documenting argument default values.Georg Brandl2009-09-161-7/+6
|
* Merged revisions 74207 via svnmerge fromGeorg Brandl2009-07-261-2/+2
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74207 | georg.brandl | 2009-07-26 16:19:57 +0200 (So, 26 Jul 2009) | 1 line #6577: fix (hopefully) all links to builtin instead of module/class-specific objects. ........
* Merged revisions 68219 via svnmerge fromGeorg Brandl2009-01-031-5/+5
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r68219 | georg.brandl | 2009-01-03 21:47:01 +0100 (Sat, 03 Jan 2009) | 2 lines Fix uses of the default role. ........
* Undocument deprecated module global "template".Georg Brandl2008-08-041-14/+1
|
* Merged revisions ↵Alexandre Vassalotti2008-05-161-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62998-63003,63005-63006,63009-63012,63014-63017,63019-63020,63022-63024,63026-63029,63031-63041,63043-63045,63047-63054,63056-63062 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62998 | andrew.kuchling | 2008-05-10 15:51:55 -0400 (Sat, 10 May 2008) | 7 lines #1858 from Tarek Ziade: Allow multiple repositories in .pypirc; see http://wiki.python.org/moin/EnhancedPyPI for discussion. The patch is slightly revised from Tarek's last patch: I've simplified the PyPIRCCommand.finalize_options() method to not look at sys.argv. Tests still pass. ........ r63000 | alexandre.vassalotti | 2008-05-10 15:59:16 -0400 (Sat, 10 May 2008) | 5 lines Cleaned up io._BytesIO.write(). I am amazed that the old code, for inserting null-bytes, actually worked. Who wrote that thing? Oh, it is me... doh. ........ r63002 | brett.cannon | 2008-05-10 16:52:01 -0400 (Sat, 10 May 2008) | 2 lines Revert r62998 as it broke the build (seems distutils.config is missing). ........ r63014 | andrew.kuchling | 2008-05-10 18:12:38 -0400 (Sat, 10 May 2008) | 1 line #1858: add distutils.config module ........ r63027 | brett.cannon | 2008-05-10 21:09:32 -0400 (Sat, 10 May 2008) | 2 lines Flesh out the 3.0 deprecation to suggest using the ctypes module. ........ r63028 | skip.montanaro | 2008-05-10 22:59:30 -0400 (Sat, 10 May 2008) | 4 lines Copied two versions of the example from the interactive session. Delete one. ........ r63037 | georg.brandl | 2008-05-11 03:02:17 -0400 (Sun, 11 May 2008) | 2 lines reload() takes the module itself. ........ r63038 | alexandre.vassalotti | 2008-05-11 03:06:04 -0400 (Sun, 11 May 2008) | 4 lines Added test framework for handling module renames. Factored the import guard in test_py3kwarn.TestStdlibRemovals into a context manager, namely test_support.CleanImport. ........ r63039 | georg.brandl | 2008-05-11 03:06:05 -0400 (Sun, 11 May 2008) | 2 lines #2742: ``''`` is not converted to NULL in getaddrinfo. ........ r63040 | alexandre.vassalotti | 2008-05-11 03:08:12 -0400 (Sun, 11 May 2008) | 2 lines Fixed typo in a comment of test_support.CleanImport. ........ r63041 | alexandre.vassalotti | 2008-05-11 03:10:25 -0400 (Sun, 11 May 2008) | 2 lines Removed a dead line of code. ........ r63043 | georg.brandl | 2008-05-11 04:47:53 -0400 (Sun, 11 May 2008) | 2 lines #2812: document property.getter/setter/deleter. ........ r63049 | georg.brandl | 2008-05-11 05:06:30 -0400 (Sun, 11 May 2008) | 2 lines #1153769: document PEP 237 changes to string formatting. ........ r63050 | georg.brandl | 2008-05-11 05:11:40 -0400 (Sun, 11 May 2008) | 2 lines #2809: elaborate str.split docstring a bit. ........ r63051 | georg.brandl | 2008-05-11 06:13:59 -0400 (Sun, 11 May 2008) | 2 lines Fix typo. ........ r63052 | georg.brandl | 2008-05-11 06:33:27 -0400 (Sun, 11 May 2008) | 2 lines #2709: clarification. ........ r63053 | georg.brandl | 2008-05-11 06:42:28 -0400 (Sun, 11 May 2008) | 2 lines #2659: add ``break_on_hyphens`` to TextWrapper. ........ r63057 | georg.brandl | 2008-05-11 06:59:39 -0400 (Sun, 11 May 2008) | 2 lines #2741: clarification of value range for address_family. ........ r63058 | georg.brandl | 2008-05-11 07:09:35 -0400 (Sun, 11 May 2008) | 2 lines #2452: timeout is used for all blocking operations. ........ r63059 | andrew.kuchling | 2008-05-11 09:33:56 -0400 (Sun, 11 May 2008) | 2 lines #1792: Improve performance of marshal.dumps() on large objects by increasing the size of the buffer more quickly. ........ r63060 | andrew.kuchling | 2008-05-11 10:00:00 -0400 (Sun, 11 May 2008) | 1 line #1858: re-apply patch for this, adding the missing files ........ r63061 | benjamin.peterson | 2008-05-11 10:13:25 -0400 (Sun, 11 May 2008) | 2 lines Add the "until" command to pdb ........ r63062 | georg.brandl | 2008-05-11 10:17:13 -0400 (Sun, 11 May 2008) | 2 lines Add some sentence endings. ........
* Merged revisions ↵Alexandre Vassalotti2008-05-151-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62914-62916,62918-62919,62921-62922,62924-62942,62944-62945,62947-62949 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r62914 | skip.montanaro | 2008-05-08 20:45:00 -0400 (Thu, 08 May 2008) | 4 lines Add an example about using NamedTemporaryFile() to replace mktemp(). I'm unclear whether the verbatim text should have been indented or by how much. ........ r62915 | benjamin.peterson | 2008-05-08 20:50:40 -0400 (Thu, 08 May 2008) | 2 lines reindent example ........ r62927 | georg.brandl | 2008-05-09 02:09:25 -0400 (Fri, 09 May 2008) | 2 lines #2788: add .hgignore file. ........ r62928 | georg.brandl | 2008-05-09 02:10:43 -0400 (Fri, 09 May 2008) | 2 lines #2781: fix function name. ........ r62929 | georg.brandl | 2008-05-09 02:18:27 -0400 (Fri, 09 May 2008) | 2 lines Add a sentence to basicConfig() that is in the docstring. ........ r62930 | georg.brandl | 2008-05-09 02:26:54 -0400 (Fri, 09 May 2008) | 2 lines Add another link to colorsys docs. ........ r62931 | georg.brandl | 2008-05-09 02:36:07 -0400 (Fri, 09 May 2008) | 2 lines Add Kodos as a re reference. ........ r62932 | georg.brandl | 2008-05-09 02:39:58 -0400 (Fri, 09 May 2008) | 2 lines Add a note about using reload(). ........ r62933 | andrew.kuchling | 2008-05-09 07:46:05 -0400 (Fri, 09 May 2008) | 3 lines Update planned release date. Uncomment PEP 370 section. Add some module items ........ r62934 | christian.heimes | 2008-05-09 08:19:09 -0400 (Fri, 09 May 2008) | 1 line Add --user option to build_ext ........ r62948 | mark.dickinson | 2008-05-09 13:54:23 -0400 (Fri, 09 May 2008) | 3 lines Issue #2487. math.ldexp(x, n) raised OverflowError when n was large and negative; fix to return an (appropriately signed) zero instead. ........ r62949 | martin.v.loewis | 2008-05-09 14:21:55 -0400 (Fri, 09 May 2008) | 1 line Use the CHM file name that Sphinx assigns. ........