imports are now fully functional

This commit is contained in:
David Halter
2012-08-03 13:00:44 +02:00
parent a9fbb2edce
commit 639457b9ec
9 changed files with 30 additions and 16 deletions
+36
View File
@@ -0,0 +1,36 @@
from jedi import functions, evaluate
el = functions.complete()[0]
#? ['description']
el.description
#? str()
el.description
scopes, path, dot, like = \
functions.prepare_goto(source, row, column,
source_path, True)
# has problems with that (sometimes) very deep nesting.
#? set()
el = scopes.
# get_names_for_scope is also recursion stuff
#? tuple()
el = evaluate.get_names_for_scope()[0]
#? int()
el = evaluate.get_names_for_scope(1)[0][0]
#? []
el = evaluate.get_names_for_scope()[0][0]
#? list()
el = evaluate.get_names_for_scope(1)[0][1]
#? list()
el = evaluate.get_names_for_scope()[0][1]
# TODO here should stand evaluate.Instance() and so on.
#? []
el = evaluate.get_names_for_scope()[0][1][0]