[Tutor] Re : Is instance of what?

Tim Johnson tim at johnsons-web.com
Sat Jan 31 19:54:24 CET 2009


On Saturday 31 January 2009, Andre Engels wrote:
<...> 
> > o=a
<....> 
> Actually, it is false. To make it true, you have to do o=a() rather than
> o=a
 You're correct. That was my typo.
> > Is there a function that takes one
> >
> > argument and returns the class?
> >
> > Example:
> >
> > class = whatclass(o)
<...> 
> o.__class__ (or rather o.__class__.__name__) will work.
Understood. Thank you.
tj
 



More information about the Tutor mailing list