sympy_gamma
sympy_gamma copied to clipboard
about safety of eval function
have few queries
- sympy-gamma uses eval function. is it safe if i try to integrate it in my site?
- if not safe then wat cud be work around it?
@ellisonbg have few queries
sympy-gamma uses eval function. is it safe if i try to integrate it in my site? if not safe then wat cud be work around it?
Hi @abhinov2
- No, it is not safe in general. For Gamma, we do not care because it is running on Google's infrastructure, but this is still unsafe.
- You would have to write a parser to replace
sympify
that does not useeval
.
Hi @lidavidm Q1. Tell me one thing , this parser you talking about is for sympy or sympygamma ?
The parser would be for either. It does not exist (AFAIK, maybe SymPy has one now) and you would need to implement it.
Work in progress on this here https://github.com/sympy/sympy/pull/12524 (but I haven't worked on it in a while).