[issue8525] Display exceptions' subclasses in help()

Nick Coghlan report at bugs.python.org
Tue Jul 24 06:47:46 EDT 2018


Nick Coghlan <ncoghlan at gmail.com> added the comment:

I think the way modules display this information may actually provide a solid precedent that addresses the dynamic state problem I'm concerned about: filter the subclass list to only include subclasses that come from the same module as the object being displayed, and use the existing showtree/getclasstree interfaces to display the nested hierarchy nicely (the same way modules do).

Then the "... and NNN other subclasses in other modules" would only be appended when there was cross-module inheritance involved.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue8525>
_______________________________________


More information about the Python-bugs-list mailing list