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 pitrou
Recipients benjamin.peterson, nneonneo, pitrou, pmpp, skrah
Date 2010-02-02.14:51:48
SpamBayes Score 1.4379377e-07
Marked as misclassified No
Message-id <1265122389.3343.10.camel@localhost>
In-reply-to <1265121678.74.0.271873706089.issue5677@psf.upfronthosting.co.za>
Content
> An errno+ferror approach works except for two cases:
> 
>   (1) MS fgets() does not consider reading from a write-only stream
>       an error. While annoying, I think this is standard conforming.
> 
>   (2) OpenSolaris sets errno unreliably after getc.
> 
> 
> I do not know how to get around those without using OS specifics.

Ok, then perhaps it's better to have some internal {readable, writable}
flags based on the original mode string.
History
Date User Action Args
2010-02-02 14:51:51pitrousetrecipients: + pitrou, nneonneo, benjamin.peterson, skrah, pmpp
2010-02-02 14:51:49pitroulinkissue5677 messages
2010-02-02 14:51:49pitroucreate