Create Comprehension.py__iter__.
This commit is contained in:
1 parent
239f0d7213
commit
dc2e52fd7d
4 files changed
+83
-23
No files matched your search
@@ -93,6 +93,8 @@ left, right = (i for i in (1, ''))
|
||||
|
||||
#? int()
|
||||
left
|
||||
#? str()
|
||||
right
|
||||
|
||||
gen = (i for i in (1,))
|
||||
|
||||
@@ -110,9 +112,11 @@ next(gen)
|
||||
|
||||
# issues with different formats
|
||||
left, right = (i for i in
|
||||
('1', '2'))
|
||||
('1', 2))
|
||||
#? str()
|
||||
left
|
||||
#? int()
|
||||
right
|
||||
|
||||
# -----------------
|
||||
# name resolution in comprehensions.
|
||||
|
||||
Reference in new issue
Block a user