PEP 276 -- What else could iter(5) mean?
Just van Rossum
just at xs4all.nl
Thu Mar 7 07:10:51 EST 2002
In article <6qpu2gzktu.fsf at abnoba.intevation.de>,
Bernhard Herzog <bh at intevation.de> wrote:
> With iterable integers:
>
> >>> list(4)
> [0, 1, 2, 3]
> >>> tuple(4)
> (0, 1, 2, 3)
> >>> max(4)
> 3
> >>> min(4)
> 0
> >>> filter(None, 4) # also for map and reduce
> [1, 2, 3]
> >>> L = []
> >>> L.extend(3)
> >>> L
> [0, 1, 2]
> >>> zip(3)
> [(0,), (1,), (2,)]
>
> Do we really want all of these new behaviors?
I don't want any of these, but then again, I don't want "for i in 4"
either. I think it's an awful idea.
Just
More information about the Python-list
mailing list