mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
generators work again (deleted some necessary stuff)
This commit is contained in:
@@ -63,7 +63,7 @@ def recursion(a, b):
|
||||
else:
|
||||
return recursion(a+".", b+1)
|
||||
|
||||
##? int() float()
|
||||
#? int() float()
|
||||
recursion("a", 1.0)
|
||||
|
||||
# -----------------
|
||||
@@ -82,6 +82,16 @@ exe[0].index
|
||||
#? ['append']
|
||||
exe[1].append
|
||||
|
||||
# -----------------
|
||||
# default arguments
|
||||
# -----------------
|
||||
|
||||
##? int() str()
|
||||
func()
|
||||
|
||||
##? float() str()
|
||||
func(1.0)
|
||||
|
||||
# -----------------
|
||||
# closures
|
||||
# -----------------
|
||||
@@ -255,3 +265,6 @@ next(gen_exe).upper
|
||||
next(gen_exe).real
|
||||
#? int() str()
|
||||
next(gen_exe)
|
||||
|
||||
#? int() str() list
|
||||
next(gen_exe, list)
|
||||
|
||||
Reference in New Issue
Block a user