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-June/045641.html below:

[Python-Dev] Re: decorators and 2.4

[Python-Dev] Re: decorators and 2.4Paul Moore pf_moore at yahoo.co.uk
Sat Jun 26 11:27:34 EDT 2004
"Phillip J. Eby" <pje at telecommunity.com> writes:

> * Which of the numerous possible syntax variations should be
>   used/recommended:

Just a reminder, but I believe that Guido has already pronounced to
the effect that there are only 3 contenders left:

    @staticmethod
    def foo(a,b,c):
        pass

    [staticmethod]
    def foo(a,b,c):
        pass

and

    def foo(a,b,c) [staticmethod]:
        pass

Hey - guess what? Writing them out like that, I find that my initial
preference for the 3rd one has gone. To be honest, I no longer have a
strong opinion between the three. In fact, if anything, I'd say I have
a very mild preference for Guido's option (number 2). I dislike the
ambiguity problem with it, though.

Paul
-- 
"Bother," said the Borg, "We've assimilated Pooh."


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