mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-10 07:41:51 +08:00
update the test of set comprehension literal
This commit is contained in:
@@ -54,8 +54,18 @@ left
|
|||||||
#? int()
|
#? int()
|
||||||
[a for a in {1, 2, 3}][0]
|
[a for a in {1, 2, 3}][0]
|
||||||
|
|
||||||
|
#? set()
|
||||||
|
{a for a in range(10)}
|
||||||
|
|
||||||
##? int()
|
##? int()
|
||||||
{a for a in range(10)}[0]
|
[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
|
# list comprehensions should also work in combination with functions
|
||||||
def listen(arg):
|
def listen(arg):
|
||||||
|
|||||||
Reference in New Issue
Block a user