An Object's Type

Diez B. Roggisch deets at nospam.web.de
Wed Dec 5 08:02:44 EST 2007


bg_ie at yahoo.com wrote:

> Hi,
> 
> Is it possible to find out if an object is of a certain type or of a
> type derived from this type?

http://docs.python.org/lib/built-in-funcs.html

Look for isinstance.

Diez



More information about the Python-list mailing list