We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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?
to your account
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
assignee = 'https://github.com/brandtbucher'
closed_at = <Date 2020-03-07.19:13:10.129>
created_at = <Date 2020-02-20.16:12:25.133>
labels = ['interpreter-core', 'type-feature', '3.9']
title = 'PEP 614: Relaxing Grammar Restrictions On Decorators'
updated_at = <Date 2021-04-08.23:04:03.217>
user = 'https://github.com/brandtbucher'
activity = <Date 2021-04-08.23:04:03.217>
actor = 'miss-islington'
assignee = 'brandtbucher'
closed = True
closed_date = <Date 2020-03-07.19:13:10.129>
closer = 'brandtbucher'
components = ['Interpreter Core']
creation = <Date 2020-02-20.16:12:25.133>
creator = 'brandtbucher'
dependencies = 
files = 
hgrepos = 
issue_num = 39702
keywords = ['patch']
message_count = 8.0
messages = ['362328', '363311', '363312', '363319', '363324', '363612', '390568', '390570']
nosy_count = 5.0
nosy_names = ['gvanrossum', 'miss-islington', 'brandtbucher', 'gousaiyang', 'shankarj67']
pr_nums = ['18570', '18802', '18851', '25234', '25290']
priority = 'normal'
resolution = None
stage = 'resolved'
status = 'closed'
superseder = None
type = 'enhancement'
url = 'https://bugs.python.org/issue39702'
versions = ['Python 3.9']
The text was updated successfully, but these errors were encountered:
The attached PR implements PEP-614's revised grammar for decorators, with tests. In short:
decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE
decorator: '@' namedexpr_test NEWLINE
I'm marking it as DO-NOT-MERGE until the PEP is accepted, but code review is still appreciated. Discussion of the PEP itself should go to the Python-Dev thread:
Sorry, something went wrong.
New changeset be501ca by Brandt Bucher in branch 'master':
bpo-39702: Relax grammar restrictions on decorators (PEP-614) (GH-18570)
I'm guessing there's some doc update that needs to happen now the code has landed.
Agreed. I'll have something up later, hopefully.
I'll add a tiny blurb to whatsnew, as well as adding the PEP to the "See also:" note in https://docs.python.org/3.9/reference/compound_stmts.html and updating the mini-grammar there. I don't think it needs much else.
Hmmm. It looks like the page of the docs that I've linked above wasn't ever updated for the walrus. We should probably add updating this part of the docs to https://devguide.python.org/grammar/...
Sounds good. If you feel like it you can submit a PR to the devguide, I'm sure Brett will merge it quickly...
New changeset 8f13053 by Brandt Bucher in branch 'master':
bpo-39702: Update the Language Reference (PEP-614) (GH-18802)
New changeset 1e051a2 by Saiyang Gou in branch 'master':
bpo-39702: Remove dotted_name from decorator documentation (GH-25234)
New changeset a9228d0 by Miss Islington (bot) in branch '3.9':
[3.9] bpo-39702: Remove dotted_name from decorator documentation (GH-25234) (GH-25290)
No branches or pull requests