Erik Max Francis
max at alcyone.com
Tue Jun 25 10:14:26 CEST 2002
"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
> instances of another class. How can i let this 'childclass' call a
> 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