[Python-Dev] News from asyncio
cs at zip.com.au
Sun Feb 2 23:52:46 CET 2014
On 27Jan2014 09:15, Devin Jeanpierre <jeanpierreda at gmail.com> wrote:
> On Mon, Jan 27, 2014 at 5:21 AM, Victor Stinner
> <victor.stinner at gmail.com> wrote:
> > - asyncio.IncompleReadError.expected is the total expected size, not
> > the remaining size
> Why not be consistent with the meaning of
> http.client.IncompleteRead.expected? The current meaning can be
> recovered via len(e.partial) + e.expected.
Which you could also expose as a property name ".requested", since
this value must have been thought useful or Victor wouldn't have
defined .expected to be it:-) Seems reasonable, for all that the
above computation is trivial.
Just a thought,
Cameron Simpson <cs at zip.com.au>
Artificial intelligence won't make a micrometer out of a monkeywrench.
- Rick Gordon <rickg at crl.com>
More information about the Python-Dev