How to get the type of an object?

Licheng Fang fanglicheng at gmail.com
Wed Dec 21 12:15:22 EST 2005


I wrote a function with a list as its parameter. And the function has
to perform different operations based on the datatypes of the elements.
How can I decide whether an object is, say, a list or a string?

Thanks.




More information about the Python-list mailing list