Nick Coghlan <ncogh...@gmail.com> added the comment:

Terry, if you'd like to continue that discussion, please open a new enhancement 
request for 3.8+ against the inspect module asking for the affected 
introspection functions to recursively search for relevant attributes, the same 
way `inspect.signature` digs inside different object types to look for 
signature information.

However, the fact the inspect module doesn't implement that search for relevant 
attributes today is *not* a bug - it's a past design decision that could 
potentially stand to be revisited.

By contrast, the fact the affected functions throw AttributeError instead of 
returning False for a missing attribute *is* a bug.

----------

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

Reply via email to