MCPcopy Create free account
hub / github.com/KmBase/ScienceReading / _importable

Function _importable

embedded/site-packages/dill/source.py:769–829  ·  view source on GitHub ↗

get an import string (or the source code) for the given object This function will attempt to discover the name of the object, or the repr of the object, or the source code for the object. To attempt to force discovery of the source code, use source=True, to attempt to force the use

(obj, alias='', source=None, enclosing=False, force=True, \
                                              builtin=True, lstrip=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

importableFunction · 0.85

Calls 5

isfrommainFunction · 0.85
getsourceFunction · 0.85
_isinstanceFunction · 0.85
getimportFunction · 0.85
getnameFunction · 0.85

Tested by

no test coverage detected