This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pmpp
Recipients benjamin.peterson, nneonneo, pitrou, pmpp
Date 2010-01-30.22:24:45
SpamBayes Score 0.0045040217
Marked as misclassified No
Message-id <1264890287.05.0.678110211327.issue5677@psf.upfronthosting.co.za>
In-reply-to
Content
related:
	f=open('test','w+b')
	f.write('123456789ABCDEF')
	#f.seek(0)
	print "position",f.tell()
	print '[',len(f.read()),']'
	f.close()

windows: 2.6.2 mingw/ 2.6.4 msvc builds
len(f.read()) > 0   ( 4081 when i did the test ) but should be 0
printing the buffer show binary garbage.

linux is ok f.read() return '' as expected
History
Date User Action Args
2010-01-30 22:24:47pmppsetrecipients: + pmpp, pitrou, nneonneo, benjamin.peterson
2010-01-30 22:24:47pmppsetmessageid: <1264890287.05.0.678110211327.issue5677@psf.upfronthosting.co.za>
2010-01-30 22:24:45pmpplinkissue5677 messages
2010-01-30 22:24:45pmppcreate