c[:]()

Stebanoid at gmail.com Stebanoid at gmail.com
Sun Jun 3 17:55:41 CEST 2007


On 3    , 18:44, Marc 'BlackJack' Rintsch <bj_... at gmx.net> wrote:
> In <1180878080.630213.258... at q75g2000hsh.googlegroups.com>,
>
> >bla-bla-bla
> > it is easy to read and understandable.
>
> And has the same issue as a list comprehension if all you want is the side
> effect of the calls: a useless temporary list full of `None`\s is build.
>
> Ciao,
>         Marc 'BlackJack' Rintsch

functoins can return a values, and you get it. I don't think that it
is bad side effect.
When you write simple
>>> def a(): print "From Russia with love."
>>> a()
you have side effect too - returning "None".




More information about the Python-list mailing list