circuitpython/tests/basics/subclass-native3.py

9 lines
140 B
Python

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