GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — vscode-python/pythonFiles/jedi/api/interpreter.py at master · feimeng115/vscode-python Expand file tree/ Copy pathinterpreter.pyMore file actions 61 lines (47 loc) · 1.78 KB / Copy pathinterpreter.pyFile metadata and controls61 lines (47 loc) · 1.78 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 """ TODO Some parts of this module are still not well documented. """ from jedi.evaluate.context import ModuleContext from jedi.evaluate import compiled from jedi.evaluate.compiled import mixed from jedi.evaluate.compiled.access import create_access_path from jedi.evaluate.base_context import Context def _create(evaluator, obj): return compiled.create_from_access_path( evaluator, create_access_path(evaluator, obj) ) class NamespaceObject(object): def __init__(self, dct): self.__dict__ = dct class MixedModuleContext(Context): type = 'mixed_module' def __init__(self, evaluator, tree_module, namespaces, path, code_lines): self.evaluator = evaluator self._namespaces = namespaces self._namespace_objects = [NamespaceObject(n) for n in namespaces] self._module_context = ModuleContext( evaluator, tree_module, path=path, code_lines=code_lines ) self.tree_node = tree_module def get_node(self): return self.tree_node def get_filters(self, *args, **kwargs): for filter in self._module_context.get_filters(*args, **kwargs): yield filter for namespace_obj in self._namespace_objects: compiled_object = _create(self.evaluator, namespace_obj) mixed_object = mixed.MixedObject( self.evaluator, parent_context=self, compiled_object=compiled_object, tree_context=self._module_context ) for filter in mixed_object.get_filters(*args, **kwargs): yield filter @property def code_lines(self): return self._module_context.code_lines def __getattr__(self, name): return getattr(self._module_context, name) |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |