Skip to content
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

PEP 636: clarify __match_args__ naming #2136

Merged
merged 3 commits into from
Nov 8, 2021
Merged

Conversation

jsaponara
Copy link
Contributor

The current example allows the reader to wonder whether the match_args names must match the init args or the class members. This change explicitly shows that class member names are searched for the match_args items (admittedly at the cost of some clutter).

The current example allows the reader to wonder whether the __match_args__ names must match the __init__ args or the class members.  This change explicitly shows that class member names are searched for the __match_args__ items (admittedly at the cost of some clutter).
pep-0636.rst Outdated Show resolved Hide resolved
Thx Guido, that reduces the clutter.

Co-authored-by: Guido van Rossum <gvanrossum@gmail.com>
Copy link
Member

@gvanrossum gvanrossum left a comment

Choose a reason for hiding this comment

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

Fix the next two lines too please :-)

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