summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-05-21 21:28:17 (GMT)
committerGeorg Brandl <georg@python.org>2010-05-21 21:28:17 (GMT)
commit32af78717c3f615e12b13fde02184d62f9434da7 (patch)
treee22639369f55aba53a44da03c1c6ec651428f054
parent8e13de6725943ce7e80bf96bc5f6bd330be428a7 (diff)
downloadcpython-32af78717c3f615e12b13fde02184d62f9434da7.zip
cpython-32af78717c3f615e12b13fde02184d62f9434da7.tar.gz
cpython-32af78717c3f615e12b13fde02184d62f9434da7.tar.bz2
Recorded merge of revisions 81427 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r81427 | georg.brandl | 2010-05-21 23:12:07 +0200 (Fr, 21 Mai 2010) | 1 line Fix signatures for the various TemporaryFile class^Wfunctions. ........
-rw-r--r--Doc/library/tempfile.rst11
1 files changed, 5 insertions, 6 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
index 014d673..cde1b72 100644
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -27,8 +27,7 @@ is recommended to use keyword arguments for clarity.
The module defines the following user-callable functions:
-
-.. function:: TemporaryFile(mode='w+b', bufsize=-1, suffix='', prefix='tmp', dir=None)
+.. function:: TemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix='', prefix='tmp', dir=None)
Return a file-like object that can be used as a temporary storage area.
The file is created using :func:`mkstemp`. It will be destroyed as soon
@@ -41,8 +40,8 @@ The module defines the following user-callable functions:
The *mode* parameter defaults to ``'w+b'`` so that the file created can
be read and written without being closed. Binary mode is used so that it
behaves consistently on all platforms without regard for the data that is
- stored. *bufsize* defaults to ``-1``, meaning that the operating system
- default is used.
+ stored. *buffering*, *encoding* and *newline* are interpreted as for
+ :func:`open`.
The *dir*, *prefix* and *suffix* parameters are passed to :func:`mkstemp`.
@@ -52,7 +51,7 @@ The module defines the following user-callable functions:
:keyword:`with` statement, just like a normal file.
-.. function:: NamedTemporaryFile(mode='w+b', bufsize=-1, suffix='', prefix='tmp', dir=None, delete=True)
+.. function:: NamedTemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix='', prefix='tmp', dir=None, delete=True)
This function operates exactly as :func:`TemporaryFile` does, except that
the file is guaranteed to have a visible name in the file system (on
@@ -67,7 +66,7 @@ The module defines the following user-callable functions:
be used in a :keyword:`with` statement, just like a normal file.
-.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', bufsize=-1, suffix='', prefix='tmp', dir=None)
+.. function:: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None, suffix='', prefix='tmp', dir=None)
This function operates exactly as :func:`TemporaryFile` does, except that
data is spooled in memory until the file size exceeds *max_size*, or