Checking the type

Markus Reitz Markus_Reitz at yahoo.com
Wed Mar 21 06:47:22 EST 2001


Hi,

is there a possibilty to check if a variable refers to an object of type x?
Does a typeof-command exist in Python:

  if a typeof list:
     #Commands only useable with list

I read the Python Tutorial, but have not found a hint to this topic.

Thanks

Markus





More information about the Python-list mailing list