Skip to content

PEP 570: Demonstrate a corner case#978

Merged
gvanrossum merged 3 commits intomasterfrom
clarify-pep-570
Apr 6, 2019
Merged

PEP 570: Demonstrate a corner case#978
gvanrossum merged 3 commits intomasterfrom
clarify-pep-570

Conversation

@gvanrossum
Copy link
Copy Markdown
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
Comment thread pep-0570.rst
Comment thread pep-0570.rst Outdated
Copy link
Copy Markdown
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