py: Simplify and remove redundant code for __iter__ method lookup.
This commit is contained in:
6
tests/basics/iter0.py
Normal file
6
tests/basics/iter0.py
Normal file
@@ -0,0 +1,6 @@
|
||||
# builtin type that is not iterable
|
||||
try:
|
||||
for i in 1:
|
||||
pass
|
||||
except TypeError:
|
||||
print('TypeError')
|
||||
Reference in New Issue
Block a user