range(seq)?

Paul Rubin phr-n2002a at nightsong.com
Fri Feb 8 22:05:42 EST 2002


quinn at hurl.ugcs.caltech.edu (Quinn Dunkan) writes:
> I've always thought that sequences should have a keys() method.
> Then we could replace range(len(seq)) with seq.keys().  The
> 'indices' generator would then be spelled [].iterkeys().
> 
> I'm sure this has been suggested and rebuffed, though.

Hey, I kinda like that.  I haven't heard it before, though I haven't
been around that long.



More information about the Python-list mailing list