1"""
2categories: Core,Functions
3description: User-defined attributes for functions are not supported
4cause: MicroPython is highly optimized for memory usage.
5workaround: Use external dictionary, e.g. ``FUNC_X[f] = 0``.
6"""
7
8
9def f():
10 pass
11
12
13f.x = 0
14print(f.x)
15