[issue14092] __name__ inconsistently applied in class definition

Lex Berezhny report at bugs.python.org
Thu Feb 23 03:54:30 CET 2012


Lex Berezhny <eukreign at gmail.com> added the comment:

I don't particularly need this functionality. It was just something that seemed  counter intuitive to me.

I discovered this while working on a python to javascript compiler. I'll probably implement the compiler to allow overriding with __name__ as it seems more intuitive to me that way.

Hopefully cpython will be changed to work that way too.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14092>
_______________________________________


More information about the Python-bugs-list mailing list