Nick Coghlan <ncogh...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue13266>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to