How to detect what type a variable is?

SeanDavis12 seandavi at gmail.com
Wed Nov 29 10:43:44 EST 2006


Leandro Ardissone wrote:
> Hi,
>
> I want to know what type is a variable.
> For example, I get the contents of an xml but some content is a list or
> a string, and I need to know what type it is.

type(variable)

Sean




More information about the Python-list mailing list