[issue44232] Crash in Objects/typeobject.c
Ken Jin
report at bugs.python.org
Tue May 25 11:38:00 EDT 2021
Ken Jin <kenjin4096 at gmail.com> added the comment:
Alright, I got a minimum reproducible example:
class XBase(type):
def __new__(cls, name, bases, attrs, **kwargs):
attrs.pop('__module__')
return super().__new__(cls, name, bases, attrs, **kwargs)
class X(metaclass=XBase): ...
type('A', (X, ), {})
This triggers it, sending patch soon.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44232>
_______________________________________
More information about the Python-bugs-list
mailing list