mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-21 07:28:27 +08:00
generators used to get names
This commit is contained in:
@@ -187,7 +187,10 @@ def complete(source, row, column, source_path):
|
||||
try:
|
||||
stmt = r.top.statements[0]
|
||||
except IndexError:
|
||||
completions = evaluate.get_names_for_scope(scope)
|
||||
scope_generator = evaluate.get_names_for_scope(scope)
|
||||
completions = []
|
||||
for name_list in scope_generator:
|
||||
completions += name_list
|
||||
#for c in completions:
|
||||
# if isinstance(, parsing.Function):
|
||||
# print c.parent
|
||||
|
||||
Reference in New Issue
Block a user