You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
263 B
14 lines
263 B
"""
|
|
categories: Core,Functions
|
|
description: User-defined attributes for functions are not supported
|
|
cause: MicroPython is highly optimized for memory usage.
|
|
workaround: Use external dictionary, e.g. ``FUNC_X[f] = 0``.
|
|
"""
|
|
|
|
|
|
def f():
|
|
pass
|
|
|
|
|
|
f.x = 0
|
|
print(f.x)
|
|
|