MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / ismodule

Function ismodule

tools/python-3.11.9-amd64/Lib/inspect.py:283–290  ·  view source on GitHub ↗

Return true if the object is a module. Module objects provide these attributes: __cached__ pathname to byte compiled file __doc__ documentation string __file__ filename (missing for built-in modules)

(object)

Source from the content-addressed store, hash-verified

281
282# ----------------------------------------------------------- type-checking
283def ismodule(object):
284 """Return true if the object is a module.
285
286 Module objects provide these attributes:
287 __cached__ pathname to byte compiled file
288 __doc__ documentation string
289 __file__ filename (missing for built-in modules)"""
290 return isinstance(object, types.ModuleType)
291
292def isclass(object):
293 """Return true if the object is a class.

Callers 9

_make_titleMethod · 0.90
_renderMethod · 0.90
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