Closed kalekundert closed 2 years ago
These functions would evaluate arithmetic expressions without allowing arbitrary code to be executed, in the same vein as ast.literal_eval(). I should probably base my implementation off of ast.literal_eval(), in fact. It's pretty straight-forward.
ast.literal_eval()
These functions would evaluate arithmetic expressions without allowing arbitrary code to be executed, in the same vein as
ast.literal_eval()
. I should probably base my implementation off ofast.literal_eval()
, in fact. It's pretty straight-forward.