Message181237
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. |
|
Date |
User |
Action |
Args |
2013-02-03 01:32:55 | nadeem.vawda | set | recipients:
+ nadeem.vawda, loewis, calvin, ajaksu2, python-dev, yeeeev, serhiy.storchaka |
2013-02-03 01:32:54 | nadeem.vawda | set | messageid: <1359855174.67.0.710510463071.issue1159051@psf.upfronthosting.co.za> |
2013-02-03 01:32:54 | nadeem.vawda | link | issue1159051 messages |
2013-02-03 01:32:52 | nadeem.vawda | create | |
|