[Python-Dev] Re: Re: Call for defense of @decorators

Tim Peters tim.peters at gmail.com
Tue Aug 10 06:06:16 CEST 2004


[Barry Warsaw]
> Actually, that's an interesting case study.  Myself and others advocated
> for a keyword other than 'def' for introducing generators.  That wasn't
> how things turned out and in hindsight I think Guido made the right
> decision.  I'm confident the same thing will happen with decorators.

Ya, but it's sure taking Guido long enough to figure that out in this case!

def staticmethod:
def author(name='Barry'):
def returns([int]):
def method(self):
     return 42

a-keyword-for-all-seasons-ly y'rs  - tim


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