pmpp <pmpp....@gmail.com> added the comment: 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 ---------- nosy: +pmpp versions: -Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5677> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com