Message83997
The file pointer's behaviour after opening a file in 'a+b' mode is not
consistent among platforms: The pointer is set to the beginning of the
file on Linux and to the end of the file on MacOS. You have to call
.seek(0) before calling .read() to get consistent behaviour on all
platforms.
While this is not a serious problem, it somewhat violates the rule of
least surprise. Also we are not bound to this behaviour and can make
sure that all file objects have their respective positions well-defined
after object-creation.
Thoughts? |
|
Date |
User |
Action |
Args |
2009-03-23 08:26:24 | ebfe | set | recipients:
+ ebfe |
2009-03-23 08:26:24 | ebfe | set | messageid: <1237796784.39.0.86522917715.issue5541@psf.upfronthosting.co.za> |
2009-03-23 08:26:22 | ebfe | link | issue5541 messages |
2009-03-23 08:26:21 | ebfe | create | |
|