[Python-3000] callable()
Guido van Rossum
guido at python.org
Thu Jul 20 21:58:57 CEST 2006
On 7/20/06, Raymond Hettinger <rhettinger at ewtllc.com> wrote:
> Guido van Rossum wrote:
> >On 7/20/06, Walter Dörwald <walter at livinglogic.de> 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/)
More information about the Python-3000
mailing list