range(seq)?

Paul Rubin phr-n2002a at nightsong.com
Sat Feb 9 04:05:42 CET 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