| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Ignore linter "imported but unused" warnings in tests when the linter
doesn't understand how the import is used.
|
|
|
|
|
|
| |
Mocking only works if sys.modules['pydoc'] and pydoc are the same,
but some pydoc functions reload the module and change sys.modules.
Ensure that sys.modules['pydoc'] is always restored after the corresponding
tests.
|
|
|
|
|
| |
When help() is called with non-string argument, use __qualname__ or
__name__ if available, otherwise use "{typename} object".
|
| |
|
|
|
|
|
|
|
| |
If the Helper() class was initialized with an output, the topics, keywords
and symbols help still use the pager instead of the output.
Change the behavior so the output is used if available while keeping the
previous behavior if no output was configured.
|
|
|
|
| |
(#117341)
|
|
|
|
| |
Pydoc no longer skips global functions implemented as builtin methods,
such as MethodDescriptorType and WrapperDescriptorType.
|
|
|
|
|
| |
Useful for introspection and consistent with functions and other
descriptors.
|
| |
|
|
package (#114506)
|