[issue33268] iteration over attrs in metaclass' __new__ affects class' __name__

Eric V. Smith report at bugs.python.org
Thu Apr 12 06:45:23 EDT 2018


Eric V. Smith <eric at trueblade.com> added the comment:

In the loop, you're reassigning the value of name, then using it in the super call. If you change the name of the loop variable, your code works.

----------
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33268>
_______________________________________


More information about the Python-bugs-list mailing list