[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-29 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed now. Again, thank you reporting this bug! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d24d4c537a6 by Antoine Pitrou in branch '2.7': Issue #12062: In the `io` module, fix a flushing bug when doing a certain http://hg.python.org/cpython/rev/0d24d4c537a6 -- ___ Python tracker

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 89f77afac947 by Antoine Pitrou in branch '3.1': Issue #12062: Fix a flushing bug when doing a certain type of I/O sequence http://hg.python.org/cpython/rev/89f77afac947 New changeset 47ca1244a929 by Antoine Pitrou in branch '3.2': Issue #12062: Fix

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread John O'Connor
Changes by John O'Connor : -- nosy: +jcon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: open("test.bin", "w+b", buffering=-1) creates a BufferedRandom object. In the _pyio module, BufferedRandom overrides the write() method to "undo readahead", whereas the _io module reuses bufferedwriter_write() for bufferedrandom_methods and bufferedwriter_met

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch with assorted tests. -- keywords: +patch nosy: +barry, benjamin.peterson, georg.brandl, pitrou priority: normal -> release blocker stage: -> patch review versions: +Python 2.7, Python 3.1, Python 3.3 Added file: http://bugs.python.org/f

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: If you add "from _pyio import open" to the example, unbuffered and buffered tests give the same result :-) -- nosy: +haypo ___ Python tracker

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread Genstein
New submission from Genstein : Reporting this as requested by Antoine Pitrou: Under certain circumstances in Python 3.2 (r32:88445) it's possible for buffered I/O to lose data before it is written and/or return the wrong results when reading. I tripped over this issue whilst writing an assembl