blob: a8380c690aa9971f8a665fce7e1a3810de845c75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"""
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)
|