blob: af3280c6d70a71089c4db47ed29b39a91b75bc48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
"""
categories: Core,Runtime
description: Local variables aren't included in locals() result
cause: MicroPython doesn't maintain symbolic local environment, it is optimized to an array of slots. Thus, local variables can't be accessed by a name.
workaround: Unknown
"""
def test():
val = 2
print(locals())
test()
|