diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-22 06:29:11 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-02-22 06:29:11 (GMT) |
commit | 5c72b3f067b3cb4f5c4f8a26df426304c3b094ed (patch) | |
tree | 1c1ab2dfb8d9c1652de69f8bc013392dfc852a7a /Doc/library/tempfile.rst | |
parent | ff3f333605b3eac02c0d0e7c91a0e886c150b97a (diff) | |
parent | ad17bc0bf971348fd49970a305094b3186b4b679 (diff) | |
download | cpython-5c72b3f067b3cb4f5c4f8a26df426304c3b094ed.zip cpython-5c72b3f067b3cb4f5c4f8a26df426304c3b094ed.tar.gz cpython-5c72b3f067b3cb4f5c4f8a26df426304c3b094ed.tar.bz2 |
#17271: merge with 3.2.
Diffstat (limited to 'Doc/library/tempfile.rst')
-rw-r--r-- | Doc/library/tempfile.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst index f25730a..2ea6323 100644 --- a/Doc/library/tempfile.rst +++ b/Doc/library/tempfile.rst @@ -181,11 +181,10 @@ The module defines the following user-callable items: ``delete=False`` parameter:: >>> f = NamedTemporaryFile(delete=False) - >>> f - <open file '<fdopen>', mode 'w+b' at 0x384698> >>> f.name - '/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/tmpG7V1Y0' - >>> f.write("Hello World!\n") + '/tmp/tmptjujjt' + >>> f.write(b"Hello World!\n") + 13 >>> f.close() >>> os.unlink(f.name) >>> os.path.exists(f.name) |