1
0
forked from VimPlug/jedi

working list comprehensions with tests.

This commit is contained in:
David Halter
2012-08-27 17:52:16 +02:00
parent 5d6e30c6ab
commit 6e59e96f78
3 changed files with 47 additions and 17 deletions

View File

@@ -56,11 +56,24 @@ for i in range(10):
# list comprehensions
# -----------------
a = ['' for abc in [1]]
# basics:
a = ['' for a in [1]]
#? str()
a[0]
a = [a for a in [1]]
#? int()
a[0]
a = [a for a,b in [(1,'')]]
#? int()
a[0]
arr = [1,'']
a = [a for a in arr]
#? int() str()
a[0]
# -----------------
# ternary operator