-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Crash in Objects/typeobject.c #88398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
We noticed a behavior change in [1]. One of our tests python: Objects/typeobject.c:3219: type_new: Assertion `type != NULL' failed. Current thread 0x00007ffa6951a280 (most recent call first): This can be an issue is our test which is quite tricky. I will try to investigate it. [1] ecf14e6 |
Can you please try removing the |
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. |
Ok, it's now fixed in 3.10 and main branches. Thanks for the bug report, and thanks Ken Jin for your PR ;-) |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: