language-x-isms

astyonax astyonax at libero.it
Thu Jun 8 03:53:26 EDT 2006


Fredrik Lundh wrote:
> Bryan wrote:
>
> > for example, i've noticed several java developers i know write python code like
> > this:
> >
> > foo_list = [...]
> > for i in range(len(foo_list)):
> >     print '%d %s' % (i, foo_list[i])
>
> which is a perfectly valid way of doing things if you're targeting older
> Python platforms as well (including Jython).
> 
> </F>

But it's not the pythonic way.




More information about the Python-list mailing list