A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2004-August/047511.html below:

[Python-Dev] Decorators: vertical bar syntax

[Python-Dev] Decorators: vertical bar syntax [Python-Dev] Decorators: vertical bar syntaxSkip 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4