forked from VimPlug/jedi
Add a py__name__ call to modules. This makes listing the qualified names of modules possible (in combination with the module_name_cache). Fixes #519.
This commit is contained in:
@@ -82,12 +82,18 @@ class Evaluator(object):
|
||||
def __init__(self, grammar):
|
||||
self.grammar = grammar
|
||||
self.memoize_cache = {} # for memoize decorators
|
||||
# To memorize module names (that are assigned to modules by the import
|
||||
# logic) -> a ``__name__`` is given.
|
||||
self.module_name_cache = {}
|
||||
self.import_cache = {} # like `sys.modules`.
|
||||
self.compiled_cache = {} # see `compiled.create()`
|
||||
self.recursion_detector = recursion.RecursionDetector()
|
||||
self.execution_recursion_detector = recursion.ExecutionRecursionDetector()
|
||||
self.analysis = []
|
||||
|
||||
def wrap(self, element):
|
||||
return er.wrap(self, element)
|
||||
|
||||
def find_types(self, scope, name_str, position=None, search_global=False,
|
||||
is_goto=False):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user