[Python-Dev] Decorators: vertical bar syntax

Guido van Rossum guido at python.org
Sat Aug 7 23:07:28 CEST 2004


> Indeed, for me that's a reason to prefer | over @.  BTW, while the PEP
> wasn't clear on this point last I looked, I hope it allows for
> whitespace after the | (or @, or =, or whatever it is).

The @ is a token by itself so there's nothing to stop you to insert
whitespace after it.  The PEP should make this clear though.

--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list