Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c72b3f

Browse files
committed
#17271: merge with 3.2.
2 parents ff3f333 + ad17bc0 commit 5c72b3f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Doc/library/tempfile.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,11 +181,10 @@ The module defines the following user-callable items:
181181
``delete=False`` parameter::
182182

183183
>>> f = NamedTemporaryFile(delete=False)
184-
>>> f
185-
<open file '<fdopen>', mode 'w+b' at 0x384698>
186184
>>> f.name
187-
'/var/folders/5q/5qTPn6xq2RaWqk+1Ytw3-U+++TI/-Tmp-/tmpG7V1Y0'
188-
>>> f.write("Hello World!\n")
185+
'/tmp/tmptjujjt'
186+
>>> f.write(b"Hello World!\n")
187+
13
189188
>>> f.close()
190189
>>> os.unlink(f.name)
191190
>>> os.path.exists(f.name)

0 commit comments

Comments
 (0)