提交 dd48ccb1 编写于 作者: D Damien George

tests/basics: Add test for subclassing an iterable native type.

上级 df02f562
# test subclassing a native type which can be iterated over
class mymap(map):
pass
m = mymap(lambda x: x + 10, range(4))
print(list(m))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册