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

James Mills prologic at
Wed Jan 14 04:14:46 CET 2009

On Wed, Jan 14, 2009 at 12:57 PM, Terry Reedy <tjreedy at> wrote:
> public = no leading underscore
> private = one leading underscore
> protected = two leading underscores
> Python uses encapsulation by convention rather than by enforcement.

As mentioned previously this is not encapsulation, but
access control. But yes correct, this is how we conventionally
define access control over members of an object. It's up to the
programmer correctly adhere to the interface(s).


More information about the Python-list mailing list