Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # import os
- # why does he import os then not use it?
- # I commented it out because it appears
- # unnecesary
- import tempfile
- with tempfile.TemporaryFile() as temp:
- temp.write('Some data')
- temp.seek(0)
- print temp.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement