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

[Python-Dev] 2.4a2, and @decorators

[Python-Dev] 2.4a2, and @decorators [Python-Dev] 2.4a2, and @decoratorsGuido van Rossum guido at python.org
Tue Aug 3 02:58:28 CEST 2004
> >Can it?  I must've missed that.  It sure sounds like an incredible
> >hack -- how to you prevent the default behavior that the list of
> >decorators is thrown away by the interpreter?
> 
> By using sys.settrace (and a careful tracer implementation to avoid 
> interfering with debuggers or other active tracers):

Ah, yuck.  Not an acceptable solution.  And it doesn't let you write

  [classmethod]

-- you have to wrap the 'classmethod' in something relatively ugly.

But let's move on.

> >Because that syntax received significant boohs when I presented it at
> >EuroPython.
> 
> And "@" *didn't*???  Ah well.  C'est la vie.

Indeed it didn't.

--Guido van Rossum (home page: http://www.python.org/~guido/)
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