Wondering if someone would help me to better understand tempfile. I
attempt to create a tempfile, write to it, read it, but it is not
behaving as I expect. Any tips?
<open file '<fdopen>', mode 'w+b' at 0xab364968>
0
0
0
attempt to create a tempfile, write to it, read it, but it is not
behaving as I expect. Any tips?
>>x = tempfile.Tempor aryFile()
>>print x
>>print x
>>print x.read()
>>print len(x.read())
>>x.write("1234 ")
>>print len(x.read())
>>print len(x.read())
>>x.flush()
>>print len(x.read())
>>print len(x.read())
Comment