generators work again (deleted some necessary stuff)

This commit is contained in:
David Halter
2012-05-22 01:46:08 +02:00
parent 547c952ba1
commit da7ef3ba4b
4 changed files with 25 additions and 16 deletions

View File

@@ -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)