Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index b56d385..d7396f0 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1540,7 +1540,7 @@
     """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:
diff --git a/Misc/NEWS b/Misc/NEWS
index e01aeb2..4b04488 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -21,6 +21,8 @@
 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.