Why doesn't python's list append() method return the list itself?

News123 news1234 at free.fr
Sun Jul 11 20:30:39 EDT 2010


dhruvbird wrote:

> 
> On a side note, is there any other way to append to a list using
> slices (apart from the one below):
> x[len(x):len(x)] = [item to append]


dy you mean
x.extend([1,2,3])

?



More information about the Python-list mailing list