[Tutor] Implementing data hiding in Python

Sean 'Shaleh' Perry shaleh@valinux.com
Tue, 11 Jul 2000 19:08:33 -0700


On Wed, Jul 12, 2000 at 11:56:05AM +1000, Arthur Watts wrote:
> 
> 	I need to know if anyone has written said extensions, as I am unable
> to find anything at the Vaults of Parnassus archive. I suspect that the
> above quote may indicate that we need to write our own extensions to enforce
> data-hiding on a class-by-class basis, but I'm open to suggestions. The
> issue is *not* coding to prevent breaking modules by trampling one anothers
> namespaces, it is convincing management that Python is the right tool for
> the bulk of the project. 
> 

I do not know of any working code for this.  That said, do you NEED data
privacy as granted by things like C++'s private?  If you implement an object,
document the ways to access and set data the languages support is there only
to stop someone from misbehaving.