Y
Hacker News
new
|
ask
|
show
|
jobs
by
zardeh
3566 days ago
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.
1 comments
xapata
3566 days ago
Not prevented from being able to use, but from
accidentally
using or overriding the parent's. The child can still use the mangled name.
link