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 paul_g
Recipients
Date 2006-01-03.00:22:35
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1417712

i'll comment about the rest later, but re not understanding:

here is what ansi says: "If the file has been opened for
read/write, a read may not be followed by a write.
Or vice versa, without first calling either fflush(),
fseek(), fsetpos(), or rewind().
Unless EOF was the last character read by fread(). "

note the last sentence. python docs say that f.read() with
no size parameter will read all data until it hits EOF. this
means that any ansi c compliant implementation should
perform synchronization when you fread() an EOF. glibc
fopen(3) man page states that it follows this; it does not.
msvscrt docs do not state that it follows this; it does not.

so glibc promises ansi c compliance, but does not deliver.
msvscrt does not promise ansi c compliance and doesn't
deliver either, but at least it behaves as advertised in
this respect.

make sense?

-p
History
Date User Action Args
2007-08-23 14:37:04adminlinkissue1394612 messages
2007-08-23 14:37:04admincreate