On 2006-11-29, Leandro Ardissone <[EMAIL PROTECTED]> wrote: > 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.
>>> x = 'asdf'
>>> type(x)
<type 'str'>
>>> i = 0
>>> type(i)
<type 'int'>
>>>
--
Grant Edwards grante Yow! I Know A Joke!!
at
visi.com
--
http://mail.python.org/mailman/listinfo/python-list
