bpo-38291: Fix a spurious warning when using help(object)#27039
bpo-38291: Fix a spurious warning when using help(object)#27039gvanrossum merged 2 commits intopython:mainfrom
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