start_pos is usually not needed to search in modules, but if we generalize that, things get a lot slower - tests still pass - but the slowness is probably due to some weird recursion catching that now happens and that Jedi runs into, e.g. check ./run.py std 27 --debug

This commit is contained in:
Dave Halter
2014-03-10 00:40:57 +01:00
parent a073b902c1
commit cc667e76dc
3 changed files with 22 additions and 17 deletions

View File

@@ -279,6 +279,8 @@ class Builtin(CompiledObject):
# access it.
return [d for d in super(Builtin, self).get_defined_names() if d.name != 'None']
get_set_vars = get_defined_names
def _a_generator(foo):
"""Used to have an object to return for generators."""