Skip to content

gh-105879: Add support for keyword arguments to eval and exec #105885

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

Merged
merged 8 commits into from
May 2, 2024

Conversation

rtpg
Copy link
Contributor

@rtpg rtpg commented Jun 17, 2023

@bedevere-bot
Copy link

Most changes to Python require a NEWS entry.

Please add it using the blurb_it web app or the blurb command-line tool.

@ghost
Copy link

ghost commented Jun 17, 2023

All commit authors signed the Contributor License Agreement.
CLA signed

Copy link
Contributor

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Thanks for suggesting and adding this feature! I've definitely confused the ordering of these before :-) This looks good to me (although I think I still have a vague preference for keeping the source argument positional-only)

@iritkatriel
Copy link
Member

Does this need a doc change?

@rtpg
Copy link
Contributor Author

rtpg commented Jul 4, 2023

@iritkatriel i believe that the docstring changes (derived from the arg clinic changes) are sufficient, as I did not see anything being explicit about positional-only-ness beyond that

@JelleZijlstra JelleZijlstra self-assigned this May 1, 2024
@rtpg rtpg requested a review from ericsnowcurrently as a code owner May 1, 2024 16:21
@JelleZijlstra
Copy link
Member

I fixed the (trivial) merge conflict, undid an unnecessary formatting change, and added a documentation note as @iritkatriel suggested. I'll merge the PR in a bit so we can get this change into 3.13.

@JelleZijlstra
Copy link
Member

Thinking about it again I agree with @hauntsaninja's suggestion above that we should leave the first argument positional-only. I'll make that change.

@JelleZijlstra JelleZijlstra merged commit 2770d5c into python:main May 2, 2024
36 checks passed
SonicField pushed a commit to SonicField/cpython that referenced this pull request May 8, 2024
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.

5 participants