This is an old document, but is useful for understanding class structure in python: http://www.python.org/download/releases/2.2/descrintro/
I think you might want the subclass.__class__ method. On Fri, Feb 19, 2010 at 4:51 PM, Joel Stransky <j...@stranskydesign.com>wrote: > Bit of a python question here. > Say I have a class named MySuperClass and an extension of that class called > MySubClass. When referring to MySubClass (the class, not an instance of it), > how would I retrieve the class name of its super class. > > For instance if I had: > c = MySubClass > > I'd like to know if there is a method that would work to the effect of: > b = superclassname(c) > which would return MySuperClass > > Thanks. > > -- > --Joel Stransky > stranskydesign.com > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.