-
-
Notifications
You must be signed in to change notification settings - Fork 31.5k
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
ast.literal_eval
is still referred to as safe by the documentation for eval
#100305
Comments
Could you please elabourate about it, I would like to work on this but I can't get what the issue is trying to say. |
@ramvikrams Have you read |
yes, I read it now earlier I read |
From the docs for literal_eval:
Python 3.11 changed the documentation to no longer refer to the function as "safe" due to the misleading vagueness of the term (see #95588), but this entry under |
thanks i'll change it |
Your proposed replacement text looks weirdly out of place and negative to me:
I'd wonder why it's suddenly talking about some other function as if the reader knew about it already, as if it had been pointed out before. I'd just weaken the "safely", like (adding "more")
or (adding quote characters):
These keep introducing it properly and keep the positive tone. And in my opinion there's no need for the extra sentence telling the reader to read the documentation for details, that's what one does anyway. |
Yeah I'll do that |
Documentation
From https://docs.python.org/3/library/functions.html#eval:
Linked PRs
ast.literal_eval
is safe ineval
documentation #100326The text was updated successfully, but these errors were encountered: