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

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

[Python-Dev] Re: Call for defense of @decorators [Python-Dev] Re: Call for defense of @decoratorsKen Manheimer klm at zope.com
Fri Aug 13 00:28:57 CEST 2004
Tim Peters <tim.peters at gmail.com> writes:

> [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

Oh my.  I'm in the unfortunate position of liking this more than any of the
other options i've seen - while strongly suspecting you were not serious,
and would think a fool anyone that would consider it for a moment.  Ah
well.  The truth is out.

The only adjustment i would make is to not include the ":" on the modifier
lines:

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

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

Could be!

Ken
klm at zope.com

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