Skip to content

The globals argument to eval() should accept frozendict #145055

Description

@rhettinger
>>>eval('word', globals=frozendict({'word': 'hello'}))
Traceback (mostrecentcalllast):
File"<pyshell#19>", line1, in<module>eval('word', globals=frozendict({'word': 'hello'}))
TypeError: globalsmustbearealdict; tryeval(expr, {}, mapping)

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    interpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions