On PEP 322 (ireverse)

Terry Reedy tjreedy at udel.edu
Wed Oct 29 12:56:43 EST 2003


"Raymond Hettinger" <vze4rx4y at verizon.net> wrote in message
news:YSSnb.29683$4O1.16000 at nwrdny01.gnilink.net...
> [Terry Reedy]
> > Any good reason not to make iter so?  int, str, and float were
once
> > bifs also.
>
> The C code for it has a split path, calling __iter__ for objects
that
> have it, building iterator wrappers for sequences that don't have
> __iter__, or building another wrapper when the inputs are a
> function and sentinel.  IOW, it is a factory function capable
> of constructor any of several different types.

Good reason acknowledged.

> > I'm +1 on iter.reversed,

rescinded.

tjr






More information about the Python-list mailing list