class Foo: __BOO = 1 def foo(self): z = self.__B