aboutsummaryrefslogtreecommitdiff
path: root/tests/cpydiff/types_exception_instancevar.py
blob: adc353361f0152f8b4c0265fe2a5868716f9ce65 (plain)
1
2
3
4
5
6
7
8
9
"""
categories: Types,Exception
description: User-defined attributes for builtin exceptions are not supported
cause: MicroPython is highly optimized for memory usage.
workaround: Use user-defined exception subclasses.
"""
e = Exception()
e.x = 0
print(e.x)