This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ebfe
Recipients ebfe
Date 2009-03-23.08:26:17
SpamBayes Score 9.233433e-07
Marked as misclassified No
Message-id <1237796784.39.0.86522917715.issue5541@psf.upfronthosting.co.za>
In-reply-to
Content
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?
History
Date User Action Args
2009-03-23 08:26:24ebfesetrecipients: + ebfe
2009-03-23 08:26:24ebfesetmessageid: <1237796784.39.0.86522917715.issue5541@psf.upfronthosting.co.za>
2009-03-23 08:26:22ebfelinkissue5541 messages
2009-03-23 08:26:21ebfecreate