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
possible to fail to calc mro's #36539
Comments
This only crashes on the release22-maint branch, and class UserLong(object):
def __pow__(self, *args):
pass
coredump = 1
if not coredump:
int.__mro__ pow(0, UserLong(), 0) It's the type of the first argument to pow() that's Maybe it was the "typeobject.c refactoring" patch that |
Logged In: YES Hm, this is serious. This can happen whenever a built-in type I'm not sure which refactoring patch I'll investigate more... |
Logged In: YES In fact, this still crashes in 2.2: |
Logged In: YES OK, I nailed it. The fix is to call PyType_Ready() Fixed in both 2.3 and 2.2. |
Logged In: YES Argh, reopening. There's one little detail left: What to do? PyErr_Clear() |
Logged In: YES OK, fixed that too in 2.2.x and in 2.3, by calling |
Logged In: YES I'm reopening this (as a reminder to myself). Calling |
Logged In: YES Fixed again, this time properly (I hope :-). |
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: