[Python-Dev] PEP 0424: A method for exposing a length hint
steve at pearwood.info
Mon Jul 16 06:22:36 CEST 2012
Stephen J. Turnbull wrote:
> The point is that I don't really see the value in returning a precise
> estimate that cannot be relied on to be accurate. OK, Python is a
> "consenting adults" language, but returning an integer here seems like
> invitation to abuse.
Since __length_hint__ already exists and is already used, we should probably
hear from somebody who knows how it is used and what problems and/or benefits
it leads to.
More information about the Python-Dev