Class design: accessing "private" members

Jerome Quelin jerome.quelin at insalien.org
Mon Jul 3 08:06:53 EDT 2000


"Alex Martelli" <alex at magenta.com> wrote:
>These are excellent arguments for always using accessors from OUTSIDE the
>class.  Jerome, however, was talking about using them from INSIDE the class
>as well, which is a different issue.
Sure, I'm always using accessors from outside.
But from inside the class, I don't know which is the best. I feel like the KISS
rule should apply, but what do you OO gurus think of it ? How far encapsulation
should go ?

Regards,
Jerome
--
jerome.quelin at insalien.org



More information about the Python-list mailing list