another newbie question: why should you use "*args" ?

Eugene Antimirov Eugene.Antimirov at portaone.com
Wed Jan 31 15:39:13 CET 2007


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 at portaone.com




More information about the Python-list mailing list