cursed python experiment
oh no
alice@lappy ~ % python3
Python 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def evil():
... import inspect
... inspect.currentframe().f_back.f_locals["a"] = 2
...
>>> a=1
>>> evil()
>>> a
2