append on lists

Hrvoje Niksic hniksic at
Tue Sep 16 11:03:59 CEST 2008

Duncan Booth <duncan.booth at invalid.invalid> writes:

> The only relatively common use I can think of where you might want to call 
> a method directly on a literal is to produce a list of strings while being 
> lazy about the typing:

By far the most common is probably 'sep'.join(iterable).

More information about the Python-list mailing list