circuitpython/tests/cpydiff/core_function_instancevar.py

12 lines
158 B
Python

"""
categories: Core,Functions
description: Assign instance variable to function
cause: Unknown
workaround: Unknown
"""
def f():
pass
f.x = 0
print(f.x)