1# test subclassing a native type which can be iterated over
2
3class mymap(map):
4    pass
5
6m = mymap(lambda x: x + 10, range(4))
7print(list(m))
8