micropython/tests/cpydiff/types_exception_instancevar.py

10 wiersze
157 B
Python

"""
categories: Types,Exception
description: Assign instance variable to exception
cause: Unknown
workaround: Unknown
"""
e = Exception()
e.x = 0
print(e.x)