private

Peter Hansen peter at engcorp.com
Sat Jun 29 12:32:50 EDT 2002


Rhymes wrote:
> 
> Is there any possibility to build up a _real_ private attribute?

Please define what "_real_" means to you.  It's not apparent.

> Such as C++ private data members...

You realize that it's quite possible to get at private data members
in C++, don't you?

> I know that with double-underscore prefix (and the name mangling related)
> I can " hide " data members but I think it's not a so crafty trick...
> Is there any PEP about it? Will Guido insert a private keyword
> in a future release of Python ?

This has been discussed about 479 times in the last decade.  Please
check the archives.

-Peter



More information about the Python-list mailing list