[issue34635] inspect: add tools for inspecting subclasses

Benjamin Mintz report at bugs.python.org
Thu Sep 13 23:09:38 EDT 2018


Benjamin Mintz <benjabean1 at gmail.com> added the comment:

I didn't have one in mind. I just noticed that there was a getmro which accessed __mro__ but no corresponding method for __subclasses__.
That got me getsubclasses and getallsubclasses.

Then I thought it would be cool if you could walk the tree of subclasses in code, so I wrote getsubclasstree.

----------

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


More information about the Python-bugs-list mailing list