[Python-Dev] Decorators: vertical bar syntax
Skip Montanaro
skip at pobox.com
Tue Aug 10 05:00:21 CEST 2004
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
More information about the Python-Dev
mailing list