[Python-Dev] Adding start to enumerate() (original) (raw)
Facundo Batista facundobatista at gmail.com
Tue May 13 20:59:03 CEST 2008
- Previous message: [Python-Dev] Adding start to enumerate()
- Next message: [Python-Dev] Adding start to enumerate()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2008/5/13, Steven D'Aprano <steve at pearwood.info>:
Perhaps what we need is a more flexible enumerate function? enumerate(iterable, startatindex=0, countfrom=0)
+1 to provide both options: they're not intrusive (as I can keep using enumerate without those), and having both helps in the understanding of the function.
I mean, if I find an option that is "start", I can confuse if it will start counting or giving me the elements of the iterable... if I found both parameters, it will be easier to understand.
Regards,
-- . Facundo
Blog: http://www.taniquetil.com.ar/plog/ PyAr: http://www.python.org/ar/
- Previous message: [Python-Dev] Adding start to enumerate()
- Next message: [Python-Dev] Adding start to enumerate()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]