Decorator help

Peter Otten __peter__ at web.de
Thu Jul 4 01:39:55 EDT 2013


Joshua Landau wrote:

> On 3 July 2013 23:19, Joshua Landau <joshua.landau.ws at gmail.com> wrote:
>> If you don't want to do that, you'd need to use introspection of a
>> remarkably hacky sort. If you want that, well, it'll take a mo.
> 
> After some effort I'm pretty confident that the hacky way is impossible.

Well, technically it's 

func.func_closure[0].cell_contents.__name__

but of course you cannot know that for the general case.




More information about the Python-list mailing list