On Jan 18, 12:51 pm, "Russ P." <russ.paie...@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. -- http://mail.python.org/mailman/listinfo/python-list