'parent object'?

Guyon Morée gumuz at looze.net
Tue Jun 25 04:30:38 EDT 2002


thanx a lot for your quick response!


"Erik Max Francis" <max at alcyone.com> wrote in message
news:3D182662.CBC925DB at alcyone.com...
> "Guyon Morée" wrote:
>
> > Is there, like 'self, also a 'parent' object of some sort?
> >
> > The problem i'm having is that i have a class, which contains a list
> > of
> > instances of another class. How can i let this 'childclass' call a
> > function
> > which is on the 'parent class'?
>
> An instance has access to its class (.__class__ attribute), and a class
> has access to its parent classes (.__bases__ attribute).
>
> --
>  Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
>  __ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
> /  \ See the son in your bad day / Smell the flowers in the valley
> \__/ Chante Moore
>     Bosskey.net: Aliens vs. Predator 2 / http://www.bosskey.net/avp2/
>  A personal guide to Aliens vs. Predator 2.





More information about the Python-list mailing list