-
-
Notifications
You must be signed in to change notification settings - Fork 32k
bpo-38291: Fix a spurious warning when using help(object) #27039
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
help(object) via pydoc.TextDoc.docclass(object) iterates over the subclasses of object, which includes typing.io and typing.re if typing is imported. It tries to access cls.__module__ for each of those sub-classes. This change suppresses warnings when accessing cls.__module__.
This should not need a NEWS entry per:
|
The Azure build failure seems unrelated. |
@srittau: Status check is done, and it's a success ❌ . |
This time, Azure passes, but the address sanitizer(?) test times out. Looks like an unrelated multiprocessing error, possibly a race condition. |
Alas, we have to close and reopen the PR to make the last test pass (hopefully), GitHub won't let me merge without that. |
@srittau: Status check is done, and it's a success ❌ . |
2 similar comments
@srittau: Status check is done, and it's a success ❌ . |
@srittau: Status check is done, and it's a success ❌ . |
@gvanrossum: Please replace |
Is a backport needed? |
Thanks and no backport needed, the original change is just in the 3.11 |
https://bugs.python.org/issue38291
Automerge-Triggered-By: GH:gvanrossum