Will python never intend to support private, protected and public?

skip at pobox.com skip at pobox.com
Thu Sep 29 12:17:15 EDT 2005


    >> **Encapsulation** is one of the 3 basic characteristics of OOP.

This isn't an encapsulation issue.  From the first hit on Google for the
word:

    In programming, the process of combining elements to create a new
    entity.  For example, a procedure is a type of encapsulation because it
    combines a series of computer instructions.  Likewise, a complex data
    type, such as a record or class, relies on encapsulation.  Object-
    oriented programming languages rely heavily on encapsulation to create
    high-level objects.  Encapsulation is closely related to abstraction and
    information hiding.

Python does encapsulation just fine.  Your beef is with its information
hiding.

Skip



More information about the Python-list mailing list