On 7/20/06, Raymond Hettinger <[EMAIL PROTECTED]> wrote:
> Guido van Rossum wrote:
> >On 7/20/06, Walter Dörwald <[EMAIL PROTECTED]> wrote:
> >>str and unicode don't have __iter__, list, tuple and dict do:

> >>Should that be fixed too?

> >Yes, please. (In Python 2.6 if you can.)

> Why is the a defect?  Have we abandoned the notion of SeqIter
> automatically wrapping any object with __getitem__()?

Actually, the autowrapping was intended a backwards compatibility measure.

We should make a conscious decision whether we should make it a
permanent feature or not. (I also think that the two-argument form
iter(function, sentinel) is not very successful or useful and might be
dropped, but that's a separate issue.)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to