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

use literal_eval instead of eval #2

Open
scopatz opened this issue Jun 6, 2018 · 0 comments
Open

use literal_eval instead of eval #2

scopatz opened this issue Jun 6, 2018 · 0 comments

Comments

@scopatz
Copy link
Member

scopatz commented Jun 6, 2018

From @melund, one option is to use ast.literal_eval() instead of eval() when loading the cache. This will almost certainly be safer. However, before it is added, we should investigate whether it is faster or slower to do so. Since this is in the startup code path, we should do whatever is faster.

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

No branches or pull requests

1 participant