[Python-Dev] Re: def fn (args) [dec,dec]:

Gustavo Niemeyer niemeyer at conectiva.com
Fri Aug 6 19:11:54 CEST 2004


> Could the decorator list be treated specially, like a docstring?
> 
> class C(object):
> 
>     def longMethodNameForEffect(longArgumentOne=None,
>                                 longArgumentTwo=42):
>         [
>             staticmethod,
>             funcattrs(grammar="'@' dotted_name [ '(' [arglist] ')' ]",
>                       status="experimental", author="BDFL")
>         ]
>         """This method blah, blah.

There are compatibility problems, since this is valid code
right now (same issues which left dec-before-def as a no-no).

-- 
Gustavo Niemeyer
http://niemeyer.net


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