Hi all, I have write a simple class, I want the function two() to call private function __one(), but there is an error : NameError: global name '_simple__one' is not defined, how to work around it
class simple: def __one(self): print "Hello" def two(self): __one() print "world" if __name__ == '__main__': s = simple() s.two() Any suggestion is welcome! Best regards, Davy -- http://mail.python.org/mailman/listinfo/python-list