disgrating a list

jwaixs jwaixs at gmail.com
Fri Sep 1 14:01:29 EDT 2006


Diez B. Roggisch wrote:
> Why do you wrap a in a list? Just
>
> c = a + [b]
>
> will do it.

Yes I know, but the problem is I don't know if 'a' is a list or not. I
could make a type check, but I don't want to program in that way.

Noud




More information about the Python-list mailing list