Prototype OO

Carl Banks pavlovevidence at gmail.com
Wed Apr 2 14:14:42 EDT 2008


On Apr 2, 10:52 am, sam <s... at mas.pl> wrote:
> Then I say:
>
>         -- __id is awful, because it is a trick to prefix names
>
> and gurus say:
>
>         -- it is good solution for name conflicts
>
> But somebody may prefix his names with class names and cause nameconflict, so
> maybe it is not so good? I would prefer to hear something like "other solutions
> were very complex, and our zen says 'Simple is better than complex.', so we
> decided to use this simple and not perfect solution"

The stated purpose of the name mangling attributes is to minimize
accidental conflicts, not to enforce data hiding.


Carl Banks



More information about the Python-list mailing list