what about things like __*** ?

Eric Brunel eric.brunel at pragmadev.com
Tue Sep 3 11:16:17 CEST 2002

Gumuz wrote:

> ah great, I found asking this myself last night, too.
> isn't this the same for:   __methodName(self, parm) which makes it a
> private method?


class C:
  def __m(self):
    print 'spam'
  def __init__(self):
    self.__m()          # Works
o = C()
o.__m()                 # Does not work

- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com

More information about the Python-list mailing list