Meta decorator with parameters, defined in explicit functions

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Sun Jul 3 20:23:45 EDT 2016


On Monday, July 4, 2016 at 12:06:21 PM UTC+12, Chris Angelico wrote:
> On Mon, Jul 4, 2016 at 9:59 AM, Lawrence D’Oliveiro wrote:
>>     #begin try_func
>>         result.__name__ = func.__name__
>>         result.__doc__ = func.__doc__
>>         return \
>>             result
>>     #end try_func
> 
> This is the bit we're talking about.

This isn’t part of my decoration mechanism, this is just an example of it in use.



More information about the Python-list mailing list