Message112320
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. |
|
Date |
User |
Action |
Args |
2010-08-01 12:23:15 | pitrou | set | recipients:
+ pitrou, georg.brandl, davidsarah |
2010-08-01 12:23:15 | pitrou | set | messageid: <1280665395.69.0.617559237714.issue7952@psf.upfronthosting.co.za> |
2010-08-01 12:23:13 | pitrou | link | issue7952 messages |
2010-08-01 12:23:12 | pitrou | create | |
|