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

Function isdata

Lib/pydoc.py:192–196  ·  view source on GitHub ↗

Check if an object is of a type that probably means it's data.

(object)

Source from the content-addressed store, hash-verified

190 return object.__module__
191
192def isdata(object):
193 """Check if an object is of a type that probably means it's data."""
194 return not (inspect.ismodule(object) or inspect.isclass(object) or
195 inspect.isroutine(object) or inspect.isframe(object) or
196 inspect.istraceback(object) or inspect.iscode(object))
197
198def replace(text, *pairs):
199 """Do a series of global replacements on a string."""

Callers

nothing calls this directly

Calls 1

ismoduleMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…