Skip to content

PEP 570: Demonstrate a corner case #978

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 3 commits into from
Apr 6, 2019
Merged

PEP 570: Demonstrate a corner case #978

merged 3 commits into from
Apr 6, 2019

Conversation

gvanrossum
Copy link
Member

The name of a positional-only parameter can occur in **kwds.

(This is not really an addition to the specification, it just clarifies a corollary.)

This was brought up in python/cpython#12637 (comment)

The name of a positional-only parameter can occur in `**kwds`.
@gvanrossum gvanrossum requested a review from pablogsal April 6, 2019 19:40
Copy link
Member

@pablogsal pablogsal left a comment

Choose a reason for hiding this comment

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

LGTM

We recently added a test for this in the implementation:

https://github.com/pablogsal/cpython/blob/PEP570/Lib/test/test_positional_only_arg.py#L248-L257

@gvanrossum gvanrossum merged commit f25f585 into master Apr 6, 2019
@gvanrossum gvanrossum deleted the clarify-pep-570 branch April 10, 2019 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants