[docs] [issue28437] Class definition is not consistent with types.new_class

Neil Girdhar report at bugs.python.org
Thu Oct 13 22:22:57 EDT 2016


Neil Girdhar added the comment:

Oops, I meant:

MyDerived = new_class("MyDerived", (MyClass,), dict(metaclass=metaclass_callable))

Nevertheless, the exception line number is totally off because it's tripping in the C code rather than in the Python code of the types library.

----------

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


More information about the docs mailing list