Yury Selivanov added the comment:

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

Well, we unwrap until we see a "__signature__" attribute (or we can't unwrap 
anymore).  And right after unwrapping we try to return the __signature__; so 
inserting more checks before unwrapping with unconditional recursion after it 
won't be so safe.

----------

_______________________________________
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