Re: another newbie question: why should you use "*args" ?
- From: Eugene Antimirov <Eugene.Antimirov@xxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 16:39:13 +0200
stef wrote:
# method 2
def chunk_plot(self, list):
for i in range ( len(list) ):
.... do something
And one note more. Just to be more pythonic you shouldn't use form range(len(blabla)). Instead use:
for i in list:
.....blabla...
--
Sincerely,
Eugene Antimirov
PortaOne, Inc., SIP Support Engineer
support@xxxxxxxxxxxx
.
- Follow-Ups:
- References:
- Prev by Date: "Correct" db adapter
- Next by Date: Re: Can't install Turbogears (with pysqlite) on Windows
- 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):