A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2004-April/043900.html below:

[Python-Dev] Re: Re: PEP 318: Decorators last before colon

[Python-Dev] Re: Re: PEP 318: Decorators last before colonGuido van Rossum guido at python.org
Thu Apr 1 11:36:15 EST 2004
> (Has any consideration been given to an actual metafunc mechanism
> more directly analogous to metaclasses, that would be given the
> *pieces* of a would-be function (name, param names, default args,
> code body, etc), so that there would not necessarily ever be a
> standard function object?)

Deconstructing a function like that is too invasive -- I don't want to
touch the calling sequence, for example, because it's so performance
critical.  None of the people arguing for decorators has shown a use
case for that either.  However, if you really want to do that, you
*can* take the function apart and construct a new one using the 'new'
module.

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