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

Function ispackage

Lib/inspect.py:192–194  ·  view source on GitHub ↗

Return true if the object is a package.

(object)

Source from the content-addressed store, hash-verified

190 return isinstance(object, types.MethodType)
191
192def ispackage(object):
193 """Return true if the object is a package."""
194 return ismodule(object) and hasattr(object, "__path__")
195
196def ismethoddescriptor(object):
197 """Return true if the object is a method descriptor.

Callers

nothing calls this directly

Calls 1

ismoduleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…