Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-100305: Deemphasize thatast.literal_eval is safe ineval documentation#100326

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ramvikrams wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromramvikrams:t12

Conversation

ramvikrams
Copy link
Contributor

gh-100305: Changed the doc referencing toliteral_eval in eval as it was misleading asliteral_eval was said safe

@@ -554,8 +554,9 @@ are always available. They are listed here in alphabetical order.
If the given source is a string, then leading and trailing spaces and tabs
are stripped.

See :func:`ast.literal_eval` for a function that can safely evaluate strings
with expressions containing only literals.
.. versionchanged:: 3.11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not so sure about saying 'version changed', as it seems to imply that only 3.11 has the change, but 3.10 also has it as it was backported (see PR). I'd say it's okay to just keep the original format and adjust the wording.

Copy link
ContributorAuthor

@ramvikramsramvikramsDec 20, 2022
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

done

@slatenyslateny changed the titlegh-100305:ast.literal_eval is still referred to as safe by the documentation forevalgh-100305: Deemphasize thatast.literal_eval is safe ineval documentationDec 20, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@slatenyslatenyslateny left review comments

@gpsheadgpsheadAwaiting requested review from gpshead

Assignees
No one assigned
Labels
awaiting reviewdocsDocumentation in the Doc dirskip news
Projects
Status: Todo
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@ramvikrams@slateny@bedevere-bot

[8]ページ先頭

©2009-2025 Movatter.jp