circuitpython/tests/basics/exception1.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
242 B
Python
Raw Normal View History

print(repr(IndexError()))
print(str(IndexError()))
print(str(IndexError("foo")))
2014-01-15 16:40:48 -05:00
a = IndexError(1, "test", [100, 200])
print(repr(a))
print(str(a))
print(a.args)
s = StopIteration()
print(s.value)
s = StopIteration(1, 2, 3)
print(s.value)