Forget to make the set comprehension result a set().
This commit is contained in:
1 parent
ffaf81bf1b
commit
030131d705
2 files changed
+3
-1
No files matched your search
@@ -124,6 +124,8 @@ right
|
||||
|
||||
#?
|
||||
{a - 1 for a in [1]}
|
||||
#? int()
|
||||
{a - 1: 3 for a in [1]}[0]
|
||||
|
||||
# -----------------
|
||||
# name resolution in comprehensions.
|
||||
|
||||
Reference in new issue
Block a user