Using python 2.5.1
If I create a class a
class a:
        pass
initialize o as:
o=a
and call
isinstance(o,a)
the return value is True.
Is there a function that takes one
argument and returns the class?
Example:
class = whatclass(o)
>> "a"

Since I'm hoping the answer to this question will help me
answer some bigger questions, pointers to relevant docs
and discussions is invited.

FYI: preparing to migrate to python 3.0
thanks
tim
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to