New submission from Brandt Bucher <brandtbuc...@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-...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue39702> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com