Calling private function within the same class python [duplicate]
There is no implicit this-> in Python like you have in C/C++ etc. You have to call it on self. class Foo: def __bar(self, arg): #do something def baz(self, arg): self.__bar(arg) These methods are not really private though. When you start a method name with two underscores Python does some name mangling to make it … Read more