1
0
forked from VimPlug/jedi

add documentation, why goto can return multiple objects -> fixes #42

This commit is contained in:
David Halter
2012-11-07 18:04:25 +01:00
parent dbb36fd9fb
commit 2a1ac82e04

View File

@@ -335,6 +335,9 @@ class Script(object):
end, not the first definition.
The big difference of goto and get_definition is that goto doesn't
follow imports and statements.
Multiple objects may be returned, because Python itself is a dynamic
language, which means depending on an option you can have two different
versions of a function.
:return: list of Definition objects, which are basically scopes.
:rtype: list
@@ -369,6 +372,9 @@ class Script(object):
"""
Returns the first definition found by goto. This means: It doesn't
follow imports and statements.
Multiple objects may be returned, because Python itself is a dynamic
language, which means depending on an option you can have two different
versions of a function.
:return: list of Definition objects, which are basically scopes.
"""