Why less emphasis on private data?

Paul Rubin http
Sun Jan 7 11:01:44 CET 2007

Dennis Lee Bieber <wlfraed at ix.netcom.com> writes:
> 	__ (two leading underscores) results in name-mangling. This /may/ be
> used to specify "private" data, but is really more useful when one is
> designing with multiple super classes:

Trouble with this is you can have two classes with the same name,
perhaps because they were defined in different modules, and then the
name mangling fails to tell them apart.

More information about the Python-list mailing list