Merge master into linter.

This commit is contained in:
Dave Halter
2015-12-15 12:28:38 +01:00
11 changed files with 144 additions and 19 deletions

View File

@@ -51,6 +51,26 @@ left
#? int()
[a for a in {1:'x'}][0]
##? str()
{a-1:b for a,b in {1:'a', 3:1.0}.items()}[0]
# with a set literal
#? int()
[a for a in {1, 2, 3}][0]
##? set()
{a for a in range(10)}
##? int()
[x for x in {a for a in range(10)}][0]
##? int()
{a for a in range(10)}.pop()
##? int()
iter({a for a in range(10)}).next()
# list comprehensions should also work in combination with functions
def listen(arg):
for x in arg: