[issue13266] Add inspect.unwrap(f) to easily unravel "__wrapped__" chains
Nick Coghlan
report at bugs.python.org
Wed Oct 26 08:56:38 CEST 2011
Nick Coghlan <ncoghlan at gmail.com> added the comment:
After a little thought, I think the explicit "unwrap" function is the only viable approach. Doing the unwrapping implicitly just has too many nasty corner cases to track down to ensure we aren't losing existing functionality.
I'd also suggest that we add a __wrapped__ alias for the 'func' attribute of functools.partial objects.
----------
title: Support for unwrapping __wrapped__ functions in 'inspect' module -> Add inspect.unwrap(f) to easily unravel "__wrapped__" chains
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13266>
_______________________________________
More information about the Python-bugs-list
mailing list