logoalt Hacker News

evdubslast Sunday at 9:45 PM1 replyview on HN

I am not so sure how it works, but you can define your own evaluation handler for `eval` which, I assume, can be as restrictive as you need if you're dealing with untrusted data.


Replies

bccdeelast Sunday at 10:27 PM

Seems simpler just to use `json.load`.