rustpython 0.1.0

A python interpreter written in rust.
1
2
3
4
5
6
7
8
9
10
from testutils import assert_raises
from testutils import TestFailingBool, TestFailingIter

assert any([True])
assert not any([False])
assert not any([])
assert any([True, TestFailingBool()])

assert_raises(RuntimeError, lambda: any(TestFailingIter()))
assert_raises(RuntimeError, lambda: any([TestFailingBool()]))