Nick Coghlan added the comment:

It occurs to me we're also bypassing the check that the unwrapped obj is a 
callable, so it probably makes sense to just recurse unconditionally after 
unwrapping the object, rather than only recursing for methods.

That's also a little more future-proof, in case any further checks happen to be 
inserted ahead of the check for __wrapped__.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24298>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to