Re: [Tutor] Data hiding in Python.

2006-12-19 Thread Andreas Kostyrka
* Jonathon Sisson <[EMAIL PROTECTED]> [061219 21:45]: > > > My vote is, no, not worth the trouble. It's Java / C++ / static-typing / > > put-the-client-in-a-straightjacket-so-they-don't-touch-anything thinking. > > > > Heh...and don't forget the king-pin of them all, C#. Between private, > pu

Re: [Tutor] Data hiding in Python.

2006-12-19 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote > public/private is overkill. I actually like the Delphi 2 model > (they have since added protected etc) was a good compromise > where implementation section(*) attributes Oops! I meant to add a footnote here that explained that Delphi modules comprise tw

Re: [Tutor] Data hiding in Python.

2006-12-19 Thread Jonathon Sisson
Alan Gauld wrote: > but also enforces that intent. This is espectially important > during the early development of libraries where the internal > representation is constantly evolving. Yeah, I would have to agree with you there. I hadn't considered that angle... > But multiple languages compili

Re: [Tutor] Data hiding in Python.

2006-12-19 Thread Alan Gauld
"Jonathon Sisson" <[EMAIL PROTECTED]> wrote > As a side note, does anyone have a good argument for access level > controls like C#? These kinds of controls do help in large projects with many teams, often geographically dispersed. It is a form of documentation about the intent of the class desig

Re: [Tutor] Data hiding in Python.

2006-12-19 Thread Jonathon Sisson
> My vote is, no, not worth the trouble. It's Java / C++ / static-typing / > put-the-client-in-a-straightjacket-so-they-don't-touch-anything thinking. > Heh...and don't forget the king-pin of them all, C#. Between private, public, protected, internal, and protected internal I lose track of wh

Re: [Tutor] Data hiding in Python.

2006-12-19 Thread Kent Johnson
Don Taylor wrote: > I am working my way through 'wxPython in Action' by Noel Rappin and > Robin Dunn and came across this comment about data hiding in their > explanation of the MVC pattern: > > ".. the View... should never get to see the private internals of the > Model. Admittedly, this is d

[Tutor] Data hiding in Python.

2006-12-18 Thread Don Taylor
I am working my way through 'wxPython in Action' by Noel Rappin and Robin Dunn and came across this comment about data hiding in their explanation of the MVC pattern: ".. the View... should never get to see the private internals of the Model. Admittedly, this is difficult to enforce in Python,