Amaury Forgeot d'Arc <amaur...@gmail.com> added the comment:

You should call the .flush() method when switching from writes to reads.

Nothing really overflows, but the fread() function may return uninitialized 
memory.  In versions 2.x, python uses the fopen, fread and fwrite function 
(from the C library) and is subject to their limitations.

The exact behaviour is undefined, and it is well possible that it only happens 
on Windows.  See also the discussion in #7952.

This issue does not exist in versions 3.x, where file functions have been 
rewritten.

----------
nosy: +amaury.forgeotdarc
resolution:  -> invalid
status: open -> closed

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue12843>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to