[Python-checkins] r63028 - python/trunk/Doc/library/tempfile.rst
skip.montanaro
python-checkins at python.org
Sun May 11 04:59:31 CEST 2008
Author: skip.montanaro
Date: Sun May 11 04:59:30 2008
New Revision: 63028
Log:
Copied two versions of the example from the interactive session. Delete
one.
Modified:
python/trunk/Doc/library/tempfile.rst
Modified: python/trunk/Doc/library/tempfile.rst
==============================================================================
--- python/trunk/Doc/library/tempfile.rst (original)
+++ python/trunk/Doc/library/tempfile.rst Sun May 11 04:59:30 2008
@@ -171,11 +171,6 @@
:func:`NamedTemporaryFile`, passing it the `delete=False` parameter::
>>> f = NamedTemporaryFile(delete=False)
- >>> print f.name
- >>> f.write("Hello World!\n")
- >>> f.close()
- >>> os.unlink(f.name)
- >>> f = NamedTemporaryFile(delete=False)
>>> f
<open file '<fdopen>', mode 'w+b' at 0x384698>
>>> f.name
More information about the Python-checkins
mailing list