circuitpython/tests/basics/subclass-native3.py

9 lines
140 B
Python
Raw Normal View History

class MyExc(Exception):
pass
e = MyExc(100, "Some error")
print(e)
# TODO: Prints native base class name
#print(repr(e))
print(e.args)