inheritance

Chris Angelico rosuav at gmail.com
Thu Apr 5 14:15:10 EDT 2012


On Fri, Apr 6, 2012 at 4:09 AM, Yagnesh Raghava Yakkala
<yagnesh at live.com> wrote:
> Thanks for explaining. It makes sense. I see that python interpreter can
> instantly tell the list of defined methods in the super class(es). So "keeping
> track" thing is not at all a problem.
>
> Thanks a lot again.

Most welcome!

You can get a list of those methods in your own program using the
dir() function. There's a whole lot of double-underscore ("dunder")
methods in there, but also all of your own. Tip: At the interactive
interpreter prompt, type: help(dir)

ChrisA



More information about the Python-list mailing list