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
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to