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

[Python-Dev] Re: decorators and 2.4

[Python-Dev] Re: decorators and 2.4 [Python-Dev] Re: decorators and 2.4Bill Janssen janssen at parc.com
Mon Jun 28 15:24:30 EDT 2004
Yes, it would have to be a 'compile-time' macro of some sort.

Bill

> At 09:47 PM 6/25/04 -0700, Bill Janssen wrote:
> >I could also see the function call version:
> >
> >   from decorators import decorate
> >   ...
> >   def foo (bar):
> >       decorate(bletch, flappy)
> >       ...
> >
> >where decorate is automatically applied to "foo".
> 
> That won't work, since by the time the function is called it's too late to 
> redefine foo.
> 


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