We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df02f56 commit dd48ccbCopy full SHA for dd48ccb
1 file changed
tests/basics/subclass_native_iter.py
@@ -0,0 +1,7 @@
1
+# test subclassing a native type which can be iterated over
2
+
3
+class mymap(map):
4
+ pass
5
6
+m = mymap(lambda x: x + 10, range(4))
7
+print(list(m))
0 commit comments