I am out of trial and error again Lists

Chris Angelico rosuav at gmail.com
Sat Oct 25 08:03:48 CEST 2014


On Sat, Oct 25, 2014 at 4:55 PM, Rustom Mody <rustompmody at gmail.com> wrote:
> So give me a valid (ie useful) use where instead of the usual
> l=[1,2,3]
> l.append(4)
>
> we have
>
> foo(l.append(4))

Given that l.append(4) will always return None, there's not a lot of
point passing that return value to something, unless you're doing this
inside a lambda or something dumb like that. It won't be Pythonic.
Your point?

ChrisA



More information about the Python-list mailing list