"Raymond Hettinger" <[EMAIL PROTECTED]> wrote:

> I propose dropping the __var private name mangling trick for
> double-underscores.
>
> It is rarely used; it smells like a hack; it complicates instrospection
> tools; it's not beautiful; and it is not in line with Python's spirit of
> "we're all consenting adults".

It is useful in some situations, though. In particular, I use a
metaclass that sets `__super` to the right value. This wouldn't work
without name mangling.

-- 
Christian Tanzer                                    http://www.c-tanzer.at/

_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to