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 skrah
Recipients benjamin.peterson, nneonneo, pitrou, pmpp, skrah
Date 2010-02-01.14:15:57
SpamBayes Score 1.7520581e-07
Marked as misclassified No
Message-id <>
I see that a complete errno based solution would get messy. To avoid
interfering with EAGAIN special cases, this would be needed:

#if defined(EBADF)
#define ERRNO_EBADF(x) ((x) == EBADF)
#define ERRNO_EBADF(x) 0

Then, additional checks would need to be added to get_line,
getline_via_fgets and a couple of other places.

I think the right thing is to add a field f_modeflags to the file
object, to be initialized on creation. Or use f->readable, f->writable
like py3k. Thoughts?
Date User Action Args
2010-02-01 14:15:59skrahsetrecipients: + skrah, pitrou, nneonneo, benjamin.peterson, pmpp
2010-02-01 14:15:58skrahsetmessageid: <>
2010-02-01 14:15:57skrahlinkissue5677 messages
2010-02-01 14:15:57skrahcreate