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 nadeem.vawda
Recipients ajaksu2, calvin, loewis, nadeem.vawda, python-dev, serhiy.storchaka, yeeeev
Date 2013-02-03.01:32:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359855174.67.0.710510463071.issue1159051@psf.upfronthosting.co.za>
In-reply-to
Content
I think the new behavior should be controlled by a constructor flag, maybe
named "defer_errors". I don't like the idea of adding the flag to read(),
since that makes us diverge from the standard file interface. Making a
distinction between size<0 and size=None seems confusing and error-prone,
not to mention that we (again) would have read() work differently from most
other file classes.

I'd prefer it if the new behavior is not enabled by default for size>=0,
even if this wouldn't break well-behaved code. Having a flag that only
controls the size<0 case is inelegant, and I don't think we should change
the default behavior unless there is a clear benefit to doing so.
History
Date User Action Args
2013-02-03 01:32:55nadeem.vawdasetrecipients: + nadeem.vawda, loewis, calvin, ajaksu2, python-dev, yeeeev, serhiy.storchaka
2013-02-03 01:32:54nadeem.vawdasetmessageid: <1359855174.67.0.710510463071.issue1159051@psf.upfronthosting.co.za>
2013-02-03 01:32:54nadeem.vawdalinkissue1159051 messages
2013-02-03 01:32:52nadeem.vawdacreate