Author gvanrossum
Recipients
Date 2001-01-10.14:48:48
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Mixing reads and writes on the same stream is always a bad idea. I believe that the stdio docs prescribe that you must use fflush() whenever switching between reading and writing. We could enforce this by adding two flags, "reading" and "writing" to the file object.

(It's possible that using fseek() is also allowed to change directions.)

I'm not sure tht this is worth fixing though -- no sensible programmer will do this.
History
Date User Action Args
2007-08-23 13:52:40adminlinkissue228210 messages
2007-08-23 13:52:40admincreate