[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

Brandt Bucher report at bugs.python.org
Thu Feb 20 11:12:25 EST 2020


New submission from Brandt Bucher <brandtbucher at gmail.com>:

The attached PR implements PEP 614's revised grammar for decorators, with tests. In short:

decorator: '@' dotted_name [ '(' [arglist] ')' ] NEWLINE

becomes

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:

https://mail.python.org/archives/list/python-dev@python.org/thread/SLKFAR56RA6A533O5ZOZ7XTJ764EMB7I

----------
assignee: brandtbucher
components: Interpreter Core
messages: 362328
nosy: brandtbucher, gvanrossum
priority: normal
severity: normal
status: open
title: PEP 614: Relaxing Grammar Restrictions On Decorators
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39702>
_______________________________________


More information about the Python-bugs-list mailing list