Considering just basic calculator with eval it could be possible search
eval string if it only contains digits, parenthensis and operators.
Assuring no letter (maybe except e for expotential) and special
characters this calculator should be quite safe.

But I give no any warranty for such security.

Cheers,
   Marek Mosiewicz

W dniu śro, 15.01.2020 o godzinie 18∶09 +0100, użytkownik Python
napisał:
> Le 15/01/2020 à 16:34, andersh...@gmail.com a écrit :
> > Thanks!
> 
> Do not try it, though, with a expression such as
> import os; os.system('rm -rf ~/*').
> 
> 
> 

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to