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/2010-August/102999.html below:

[Python-Dev] Proposed tweaks to functools.wraps

[Python-Dev] Proposed tweaks to functools.wraps [Python-Dev] Proposed tweaks to functools.wrapsAntoine Pitrou solipsis at pitrou.net
Wed Aug 11 12:45:51 CEST 2010
On Wed, 11 Aug 2010 12:30:40 +1000
Nick Coghlan <ncoghlan at gmail.com> wrote:
> 
> The second (#9396) came up in the context of the new cache decorators
> added to functools, and allowing applications to choose their own
> caching strategies. I suggested exposing the original (uncached)
> function, and Raymond suggested that the easiest way to enable that
> would be for functools.update_wrapper to add a new attribute that
> provides a reference to the original function. Some time back, we
> considered doing this automatically as an integral part of decoration,
> but decided that wasn't appropriate. However, building it into the
> explicit wrapping functions makes sense to me. To avoid namespace
> conflicts, I plan to use "__wraps__" as the name for the reference to
> the original function.

I think it should be "__wrapped__".

Regards

Antoine.


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