@@ -27,8 +27,7 @@ is recommended to use keyword arguments for clarity.
2727
2828The module defines the following user-callable functions:
2929
30-
31- .. function :: TemporaryFile(mode='w+b', bufsize=-1, suffix='', prefix='tmp', dir=None)
30+ .. function :: TemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None, suffix='', prefix='tmp', dir=None)
3231
3332 Return a file-like object that can be used as a temporary storage area.
3433 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:
4140 The *mode * parameter defaults to ``'w+b' `` so that the file created can
4241 be read and written without being closed. Binary mode is used so that it
4342 behaves consistently on all platforms without regard for the data that is
44- stored. *bufsize * defaults to `` -1 ``, meaning that the operating system
45- default is used .
43+ stored. *buffering *, * encoding * and * newline * are interpreted as for
44+ :func: ` open ` .
4645
4746 The *dir *, *prefix * and *suffix * parameters are passed to :func: `mkstemp `.
4847
@@ -52,7 +51,7 @@ The module defines the following user-callable functions:
5251 :keyword: `with ` statement, just like a normal file.
5352
5453
55- .. function :: NamedTemporaryFile(mode='w+b', bufsize=-1 , suffix='', prefix='tmp', dir=None, delete=True)
54+ .. function :: NamedTemporaryFile(mode='w+b', buffering=None, encoding=None, newline=None , suffix='', prefix='tmp', dir=None, delete=True)
5655
5756 This function operates exactly as :func: `TemporaryFile ` does, except that
5857 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:
6766 be used in a :keyword: `with ` statement, just like a normal file.
6867
6968
70- .. function :: SpooledTemporaryFile(max_size=0, mode='w+b', bufsize=-1 , suffix='', prefix='tmp', dir=None)
69+ .. function :: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=None, encoding=None, newline=None , suffix='', prefix='tmp', dir=None)
7170
7271 This function operates exactly as :func: `TemporaryFile ` does, except that
7372 data is spooled in memory until the file size exceeds *max_size *, or
0 commit comments