PEP 276 -- What else could iter(5) mean?

James_Althoff at i2.com James_Althoff at i2.com
Wed Apr 24 15:17:45 EDT 2002


[John Roth]
>...
> I'm against the proposal, simply on the basis that I don't find
> 5.iter to have a blindingly obvious meaning. It's ok if you explain
>...

[Charles Hixson]
> And to me the meaning *is* blindingly obvious ... and different!
>
> to me 5.iter should return an unlimitedly long string of 5's.

Perhaps one might even consider

    for i in <5,5,5,...>:

to be "blindingly" *useful* compared to

    for i in <0,1,2,3,4>:

<wink>

Jim






More information about the Python-list mailing list