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

Rhamphoryncus rhamph at gmail.com
Mon Jan 19 13:11:35 EST 2009


On Jan 18, 12:51 pm, "Russ P." <Russ.Paie... at gmail.com> wrote:
> And even if all your developers were excellent, data hiding would
> still be a convenient mechanism to simplify their jobs so they can
> focus on higher level problems -- and not have to rely on an ugly
> naming convention.

That's just it — the cost of maintaining friend lists and similar
mechanisms exceeds the benefit enforced privates.

Doing it for performance or for a secure sandbox of course changes
this, but they're separate issues.

Java hides low-level details because it thinks the programmer is
incompetent.  Python hides them because it thinks the programmer has
better things to do.  An underscore is all a competent programmer
needs.



More information about the Python-list mailing list