[Python-Dev] PEP 279

Guido van Rossum guido@python.org
Thu, 28 Mar 2002 17:22:24 -0500


> How about doing it both ways: if you try to pass start/stop for an
> iterator instead of a sequence, you get an AttributeError on
> __getindex__.  (I'm not proposing this, just throwing it out as an
> idea.  It does make explaining it more difficult, which is an argument
> against.)

The more complexity is suggested, the more I like my simplest variant.

--Guido van Rossum (home page: http://www.python.org/~guido/)