Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update features.py #128

Closed
wants to merge 1 commit into from
Closed

Conversation

renaudponcelet
Copy link
Contributor

make the looking for pi feature able to handle expression with pi in it like in "2*pi/5 - 0.2" for instance

make the looking for pi feature able to handle expression with pi in it like in "2*pi/5 - 0.2" for instance
@Gregwar
Copy link
Contributor

Gregwar commented Feb 20, 2025

To be honest, I am not a big fan of running eval(). This is both a possible source of bug and possible security issues.
Maybe we need to find some parser to handle those expressions in a better way

Gregwar added a commit that referenced this pull request Mar 4, 2025
@Gregwar
Copy link
Contributor

Gregwar commented Mar 4, 2025

Just pushed an update in 1.4.2 with a better reading of expressions based on ast module

@Gregwar Gregwar closed this Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants