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
 

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to