Testing for a list

Brian Quinlan brian at sweetapp.com
Mon Mar 10 19:59:29 CET 2003


> Python doesn't have a builtin method for doing this then, right?

People are ignoring your question and answering the question that you
should have asked :-) Here is the answer to the wrong question:

>>> a = []
>>> type(a) is type([])
1
>>> type(a) is type("")
0

Cheers,
Brian 






More information about the Python-list mailing list