"""Given an object or a path to an object, get the object and its name."""
if isinstance(thing, str):
object = locate(thing, forceload)
- if not object:
+ if object is None:
raise ImportError, 'no Python documentation found for %r' % thing
return object, thing
else:
Library
-------
+- Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
+
- Issue #23842: os.major(), os.minor() and os.makedev() now support ints again.
- Issue #23811: Add missing newline to the PyCompileError error message.