detecting variable types

SBrunning at trisystems.co.uk SBrunning at trisystems.co.uk
Thu Sep 23 05:57:22 EDT 2004


> From: Jay [mailto:wjjeonk at hotmail.com]
> 
> I'm sure this is a really dumb question, but how do you 
> detect a variable
> type in Python?
> 
> For example, I want to know if the variable "a" is a list of 
> strings or a
> single string. How do I do this?

Plenty of discussion here:
<http://www.brunningonline.net/simon/blog/archives/001349.html>.

Cheers,
Simon B.
simon at brunningonline.net
http://www.brunningonline.net/simon/blog/ 




-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.



More information about the Python-list mailing list