Determining Classname of an object

Michael Hudson mwh21 at cam.ac.uk
Tue Apr 4 06:02:54 EDT 2000


mpetroni at my-deja.com writes:

> Is there a way to find out from which class an object has been created?
> Tanx!

instance.__class__?

HTH,
M.

-- 
well, take it from an old hand: the only reason it would be easier
to program in C is that you can't easily express complex  problems
in C, so you don't.                 -- Erik Naggum, comp.lang.lisp



More information about the Python-list mailing list