[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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant