1
0
forked from VimPlug/jedi

Add an optimization around compiled dir()

This commit is contained in:
Dave Halter
2017-12-14 22:28:22 +01:00
parent 950cab2849
commit c3efde3bfa
3 changed files with 42 additions and 8 deletions

View File

@@ -12,6 +12,8 @@ def load_module(evaluator, path=None, name=None):
def get_compiled_method_return(evaluator, id, attribute, *args, **kwargs):
handle = evaluator.compiled_subprocess.get_access_handle(id)
#print >> sys.stderr, handle, attribute, args, kwargs
#print(id, attribute, args, kwargs, file=sys.stderr)
return getattr(handle.access, attribute)(*args, **kwargs)