[Python-Dev] Decorators: vertical bar syntax (original) (raw)
Skip Montanaro skip at pobox.com
Tue Aug 10 05:00:21 CEST 2004
- Previous message: [Python-Dev] Re: Decorators: vertical bar syntax
- Next message: [Python-Dev] Decorators: vertical bar syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Neil> A motivation for this was that one of the examples
Neil> @accepts(int,int)
Neil> @returns(float)
Neil> def bar(low,high):
Neil> which separates related information too much for me.
Yes, but when I wrote that example, the list-after-def form was the current king-of-the-hill:
def bar(low,high) [accepts(int,int), returns(float)]:
...
Looks fine to me. ;-)
Skip
- Previous message: [Python-Dev] Re: Decorators: vertical bar syntax
- Next message: [Python-Dev] Decorators: vertical bar syntax
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]