24. 5. 2022 18:30
Samozrejme i v pythonu by slo definovat symboly dry zpusobem, ale neni to idiomaticke
import sympy as sp def symbol(name): import inspect caller_f = inspect.currentframe().f_back caller_f.f_locals[name] = sp.Symbol(name) symbol('y') print(y)