Calculator

Marek Mosiewicz marek.mosiewicz at jotel.com.pl
Sat Feb 1 12:13:51 EST 2020


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, andershe02 at gmail.com a écrit :
> > Thanks!
> 
> Do not try it, though, with a expression such as
> import os; os.system('rm -rf ~/*').
> 
> 
> 



More information about the Python-list mailing list