Antoine Pitrou <pit...@free.fr> added the comment:

The 2.x file object mostly mirrors abilities of the standard C buffered IO 
functions (including, for example, special behaviour of text files under 
Windows). Therefore, Python code should call flush() manually if needed. It 
should be noted that the 2.x file object has been existing for ages and this 
issue is, to my knowledge, very rarely brought up.

The 3.x IO library should not have this problem since we wrote our own 
buffering layer, and we have dedicated tests for mixed reads and writes.

----------
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

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

Reply via email to