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

Function getsource

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

Return the text of the source code for an object. The source code for interactively-defined objects are extracted from the interpreter's history. The argument may be a module, class, method, function, traceback, frame, or code object. The source code is returned as a single string. An

(object, alias='', lstrip=False, enclosing=False, \
                                              force=False, builtin=False)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 8

test_getsourceFunction · 0.90
_encloseFunction · 0.85
dumpsourceFunction · 0.85
getnameFunction · 0.85
_importableFunction · 0.85
_closuredimportFunction · 0.85
_closuredsourceFunction · 0.85
importableFunction · 0.85

Calls 11

_hascodeFunction · 0.85
_isinstanceFunction · 0.85
getsourcelinesFunction · 0.85
getmoduleFunction · 0.85
getimportFunction · 0.85
getnameFunction · 0.85
_outdentFunction · 0.85
dumpsourceFunction · 0.85
appendMethod · 0.45
splitMethod · 0.45
joinMethod · 0.45

Tested by 1

test_getsourceFunction · 0.72