-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
bpo-46730: Fix refleak and tighten NULL checks #31389
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
Conversation
``PyType_GetQualName`` returns a new reference. Signed-off-by: Christian Heimes <[email protected]>
I'll try to be more cautious about ref-leaks in the future. Thanks for catching this! |
🤖 New build scheduled with the buildbot fleet by @markshannon for commit a22802e 🤖 If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again. |
@sweeneyde The buildbots have not finished verifying this PR yet. Next time please wait until all buildbots are successful. |
Ah, my apologies, I was just looking at the refleak bots. I will wait next time. Thank you for the help! |
Oh, apologies, should have checked that |
@tiran In which case could you have the last error message I can’t get that error message by making class M(type):
def __getattribute__(self, name): raise AttributeError
class A(metaclass=M): pass
obj = A()
hasattr(type(obj), "__qualname__") # returns False
property().__get__(obj) # raises AttributeError: property of 'A' object has no getter It seems that So is your |
PyType_GetQualName
returns a new reference.Signed-off-by: Christian Heimes [email protected]
https://bugs.python.org/issue46730