os.tmpfile()

redawgts redawgts at gmail.com
Wed Jan 2 01:40:38 EST 2008


Try this:

>>> import os
>>> c = os.tmpfile()
>>> c.write('dude')
>>> c.seek(0)
>>> c.read()
'dude'



More information about the Python-list mailing list