Nick Coghlan added the comment: The main reason for suggesting operator is that it needs to be in an extension module if it's going to share the underlying lookup algorithm used by super().__getattribute__ rather than reimplementing it.
I'm not particularly concerned about the exact API name though, so I changed the title of the issue to explain the problem to be solved, rather than to propose a particular solution. Doug, could you provide a specific example of the cryptic traceback that started the discussion? ---------- title: Add operator.get_providing_type -> Provide an API to help debug super().__getattribute__ results _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26961> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com