[Python-checkins] cpython (merge 3.2 -> 3.3): #17271: merge with 3.2.
ezio.melotti
python-checkins at python.org
Fri Feb 22 07:29:48 CET 2013
http://hg.python.org/cpython/rev/a9993d40821f
changeset: 82319:a9993d40821f
branch: 3.3
parent: 82315:3405d828ce95
parent: 82318:82343bbf8868
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Fri Feb 22 08:29:11 2013 +0200
summary:
#17271: merge with 3.2.
files:
Doc/library/tempfile.rst | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/Doc/library/tempfile.rst b/Doc/library/tempfile.rst
--- a/Doc/library/tempfile.rst
+++ b/Doc/library/tempfile.rst
@@ -181,11 +181,10 @@
``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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list