Does Python really follow its philosophy of "Readability counts"?

Luis Zarrabeitia kyrie at
Wed Jan 14 16:51:13 CET 2009

On Tuesday 13 January 2009 09:57:04 pm Terry Reedy wrote:
> Russ P. wrote:
> public = no leading underscore
> private = one leading underscore
> protected = two leading underscores

Aren't the last two reversed?

protected = one leading underscore 
[both you and your subclasses should access it]
private = two leading underscores   (name munging) 
[only you should access - implementation detail.]

Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.

More information about the Python-list mailing list