Closed pwwang closed 3 years ago
This is just something I didn't bother to do, and the tests relied on that but they probably shouldn't have. Happy to accept a PR. But you need to check that it's safe to hash the keys of the set/dict first.
By the way, any thoughts about an API like eval
. Something like:
pure_eval(source_or_node, globals, locals)
When I first came in, I was expecting something like that, since it is called pure_eval.
nah
If we add this to
Evaluator._handle
:Some tests would break. Looks like you intended not to evaluate them like that.
Any thoughts?