py: Simplify and remove redundant code for __iter__ method lookup.

This commit is contained in:
Damien George
2015-02-15 01:10:13 +00:00
parent d1c3788375
commit f6532bb9e0
5 changed files with 39 additions and 38 deletions

6
tests/basics/iter0.py Normal file
View File

@@ -0,0 +1,6 @@
# builtin type that is not iterable
try:
for i in 1:
pass
except TypeError:
print('TypeError')