Re: another newbie question: why should you use "*args" ?
- From: Jeffrey Froman <jeffrey@xxxxxxx>
- Date: Wed, 31 Jan 2007 07:56:56 -0800
stef wrote:
And one note more. Just to be more pythonic you shouldn't use formI would love that,
range(len(blabla)). Instead use:
for i in list:
....blabla...
but please tell me how (I need an integer counter for something else too):
for index, item in enumerate(args):
...
Jeffrey
.
- References:
- another newbie question: why should you use "*args" ?
- From: stef
- Re: another newbie question: why should you use "*args" ?
- From: Eugene Antimirov
- Re: another newbie question: why should you use "*args" ?
- From: stef
- another newbie question: why should you use "*args" ?
- Prev by Date: Re: another newbie question: why should you use "*args" ?
- Next by Date: Re: Help needed on config files
- Previous by thread: Re: another newbie question: why should you use "*args" ?
- Next by thread: Re: another newbie question: why should you use "*args" ?
- Index(es):