Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1/usr/bin/env python
- # this is from The Python
- # Standard Library by example
- # ISBN13: 9780321767349
- import os
- import tempfile
- with tempfile.NamedTemporaryFile() as temp:
- print 'temp:'
- print ' ', temp
- print 'temp.name:'
- print ' ', temp.name
- print 'Exists after close:', os.path.exists(temp.name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement