[issue2730] file readline w+ memory dumps

Amaury Forgeot d'Arc report at bugs.python.org
Thu May 1 22:33:10 CEST 2008


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

This is a duplicate of issue1394612, which was closed as "invalid". See
the discussion there:

- "in standard C mixing reads with writes yields undefined behavior [...]
If you want defined behavior, then, for example, add
>>> f.seek(0)
between your write() and read() calls."""

BTW, python 3.0 has a new implementation of the I/O stack, which does
not use fopen, and does not have this problem.

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

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2730>
__________________________________


More information about the Python-bugs-list mailing list