[Tutor] Calling private base class methods

Andreas Kostyrka andreas at kostyrka.org
Thu Apr 12 11:04:44 CEST 2007

* Jorgen Bodde <jorgen.maillist at gmail.com> [070412 10:57]:
> Hi All,
> Now that I am really diving into Python, I encounter a lot of things
> that us newbies find difficult to get right. I thought I understood
> how super() worked, but with 'private' members it does not seem to
> work. For example;
Rename your __baseMethod to _baseMethod.
Or call it as _A__baseMethod.

Basically __ just provokes name mangling.


More information about the Tutor mailing list