[Python-Dev] Re: @decorators, the PEP and the "options" out there?

Nicolas Fleury nidoizo at yahoo.com
Thu Aug 5 23:29:52 CEST 2004


IxokaI wrote:
> I added "with", although I havn't seen it. "using" would work too. I
> personally do not like punctuation syntax-- I'd really like to see
> something english, even with the hated addition of a keyword. I
> understand Guido's disapproval for "as" so wanted to think of an
> alternate.

Other crazy ideas (in case it inspires anyone):

accepts(int,int,def)
returns(float,def)
def bar(low,high):

for def accepts(int,int)
for def returns(float)
def bar(low,high):

equivalent to:
@accepts(int,int)
@returns(float)
def bar(low,high):



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