[Python-3000] Builtin iterator type

George Sakkis gsakkis at rutgers.edu
Wed Nov 15 18:39:02 CET 2006


Fredrik Lundh <fredrik at pythonware.com> wrote:

> > Thank you for your explanation; I'd rather read this in the FAQ rather than a
> > moot comparison with Java's inconsistent design.
>
> if you have comments on the FAQ entries, post them over there.
>
> note that the FAQ entry isn't about len(), though; it's about generic
> functions in general.

Something along the lines of "a generic function might also do other
smart things
apart from just calling the appropriate methods on its argument(s),
such as ..." would help (rephrased to match the FAQ's style).

> (and I completely disagree that Mike's observation is moot: consistency
> is a fundamental part of Python's design, and mechanisms that helps
> people keep their code consistent without even noticing is an important
> part of why things are that way.)

Striving for consistency without enforcing interfaces seems self defeating.

George


More information about the Python-3000 mailing list