[Python-Dev] Questions about '@' in pep 318
Barry Warsaw
barry at python.org
Thu Aug 5 23:32:41 CEST 2004
On Thu, 2004-08-05 at 17:20, "Martin v. Löwis" wrote:
> > How is this not going to happen with the '@' syntax?
>
> It's of course hard to tell how tools will react to that syntax, or
> with any other syntax change, for that matter. This specific is likely
> easy to implement, because it likely has only minimal impact on people's
> parsers: one can essentially treat a line starting with @ like a
> statement, e.g. by making @ a keyword.
Not that it should have any impact on the decision in any way, but the
regular expression python-mode.el uses to syntax color pie decorators is
much simpler (to figure out and to read) than the previous decorator
syntax support of list-before-colon.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/python-dev/attachments/20040805/85adf199/attachment.pgp
More information about the Python-Dev
mailing list