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

Method get_entity

Lib/idlelib/autocomplete.py:219–221  ·  view source on GitHub ↗

Lookup name in a namespace spanning sys.modules and __main.dict__.

(self, name)

Source from the content-addressed store, hash-verified

217 return smalll, bigl
218
219 def get_entity(self, name):
220 "Lookup name in a namespace spanning sys.modules and __main.dict__."
221 return eval(name, {**sys.modules, **__main__.__dict__})
222
223
224AutoComplete.reload()

Callers 4

fetch_completionsMethod · 0.95
test_get_entityMethod · 0.80
test_bad_entityMethod · 0.80
test_good_entityMethod · 0.80

Calls

no outgoing calls

Tested by 3

test_get_entityMethod · 0.64
test_bad_entityMethod · 0.64
test_good_entityMethod · 0.64