mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-06 01:27:37 +08:00
debugging stuff
This commit is contained in:
@@ -93,3 +93,22 @@ JustAClass().a()
|
||||
JustAClass.a.
|
||||
#? []
|
||||
JustAClass().a()
|
||||
|
||||
# -----------------
|
||||
# others
|
||||
# -----------------
|
||||
def memoize(function):
|
||||
def wrapper(*args):
|
||||
if 1:
|
||||
pass
|
||||
else:
|
||||
rv = function(*args)
|
||||
return rv
|
||||
return wrapper
|
||||
|
||||
@memoize
|
||||
def follow_statement(stmt):
|
||||
return stmt
|
||||
|
||||
#? int()
|
||||
follow_statement(1)
|
||||
|
||||
12
test/completion/thirdparty/jedi.py
vendored
12
test/completion/thirdparty/jedi.py
vendored
@@ -1,10 +1,18 @@
|
||||
|
||||
import functions
|
||||
from jedi import functions
|
||||
|
||||
el = functions.complete()[0]
|
||||
# has problems with that (sometimes) very deep nesting.
|
||||
#? ['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.
|
||||
#? str()
|
||||
el = scopes.
|
||||
|
||||
Reference in New Issue
Block a user