[Python-Dev] PEP 279 (original) (raw)
Guido van Rossum guido@python.org
Thu, 28 Mar 2002 17:22:24 -0500
- Previous message: [Python-Dev] PEP 279
- Next message: [Python-Dev] Re: PEP 279
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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/)
- Previous message: [Python-Dev] PEP 279
- Next message: [Python-Dev] Re: PEP 279
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]