read() on tempfile

cherico cherico at bonbon.net
Thu Jan 29 13:41:51 EST 2004


from tempfile import *

f = NamedTemporaryFile ()
f = write ( 'test' )
print f.read () #here print nothing

why is it nothing to read()?
I suppose f is of mode 'w+'



More information about the Python-list mailing list