"inherited" keyword in Python?

Jürgen Hermann jh at web.de
Mon Dec 4 17:57:51 EST 2000


"Carsten Gaebler" <cg at schlund.de> schrieb im Newsbeitrag
news:3A2B9EFA.3A64C13B at schlund.de...
> Does Python know something like the "inherited" keyword from Borland
> Pascal?

>>> class a:
...  pass
...
>>> class b(a):
...  pass
...
>>> x=b()
>>> print x.__class__.__bases__
(<class __main__.a at 007F15CC>,)





More information about the Python-list mailing list