On Wed, Jan 14, 2009 at 12:57 PM, Terry Reedy <tjre...@udel.edu> 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).

--JamesMills
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to