list[] = var => list.append(var) (phpstyle)

Nick Perkins nperkins7 at home.com
Sat Jul 14 19:34:03 EDT 2001


"Alex Martelli" <aleaxit at yahoo.com> wrote in message
...
>     list_var += var_to_append
...

you mean:

list_var += [var_to_append]

or,

list_var += list_to_extend






More information about the Python-list mailing list