Testing for a list
Antun Karlovac
antun at antunkarlovac.com
Mon Mar 10 14:04:16 EST 2003
Thanks Brian
That's exactly what I needed.
Why were people ignoring my question? What was wrong about it?
-Antun
> -----Original Message-----
> From: Brian Quinlan [mailto:brian at sweetapp.com]
> Sent: Monday, March 10, 2003 10:59 AM
> To: 'Antun Karlovac'; 'Mark McEahern'; python-list at python.org
> Subject: RE: Testing for a list
>
>
> > 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