MCPcopy Index your code
hub / github.com/python/cpython / ismodule

Function ismodule

Lib/inspect.py:180–182  ·  view source on GitHub ↗

Return true if the object is a module.

(object)

Source from the content-addressed store, hash-verified

178
179# ----------------------------------------------------------- type-checking
180def ismodule(object):
181 """Return true if the object is a module."""
182 return isinstance(object, types.ModuleType)
183
184def isclass(object):
185 """Return true if the object is a class."""

Callers 8

ispackageFunction · 0.85
getfileFunction · 0.85
getmoduleFunction · 0.85
findsourceFunction · 0.85
getcommentsFunction · 0.85
getsourcelinesFunction · 0.85
getclosurevarsFunction · 0.85
_signature_fromstrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…