>>> eval('word', globals=frozendict({'word': 'hello'}))
Traceback (most recent call last):
File "<pyshell#19>", line 1, in <module>
eval('word', globals=frozendict({'word': 'hello'}))
TypeError: globals must be a real dict; try eval(expr, {}, mapping)
Linked PRs