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/2005-March/052084.html below:

[Python-Dev] func.update_meta (was: @deprecated)

[Python-Dev] func.update_meta (was: @deprecated) [Python-Dev] func.update_meta (was: @deprecated)Nick Coghlan ncoghlan at iinet.net.au
Sat Mar 12 05:25:55 CET 2005
Reinhold Birkenfeld wrote:
> Nick Coghlan wrote:
>>A utility method on function objects could simplify this:
>>   newFunc.update_info(func)
> 
> 
> +1. This is really good for 90% of all decorator uses. But maybe a
> better name should be found, perhaps "update_meta".

I like "update_meta"

Patch against current CVS added to SF with the behaviour:

   def update_meta(self, other):
     self.__name__ = other.__name__
     self.__doc__ = other.__doc__
     self.__dict__.update(other.__dict__)

http://www.python.org/sf/1161819

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at email.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.skystorm.net
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