18 Sep
2020
18 Sep
'20
9:43 p.m.
On Sat, Sep 19, 2020 at 4:35 AM Paolo Lammens
The current grammar for decorators is
decorator ::= "@" dotted_name ["(" [argument_list [","]] ")"] NEWLINE
This restricts the decorator syntax to dotted names with an optional call with an argument list:
Guido's Time Machine has been deployed and this change has already been made! https://www.python.org/dev/peps/pep-0614/ Starting with Python 3.9 (due for GA release in about a month), decorator syntax WILL be more flexible! :) ChrisA