News for hackers. Stuff that matters.
Re:A bite of Python by zardeh on Thursday September 08, 2016 @01:23PM (#12455033)
I'd say that private methods are double underscored, and protected methods are single underscored, since the goal of the __ is to prevent child classes from being able to use the parent implementation via self.__meth.
Re:A bite of Python by xapata on Thursday September 08, 2016 @06:41PM (#12458067)
Not prevented from being able to use, but from accidentally using or overriding the parent's. The child can still use the mangled name.