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

Luis Zarrabeitia kyrie at uh.cu
Wed Jan 14 10:51:13 EST 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.
http://profesores.matcom.uh.cu/~kyrie



More information about the Python-list mailing list