[issue34805] Explicitly specify `MyClass.__subclasses__()` returns classes in definition order

Guido van Rossum report at bugs.python.org
Wed Nov 7 16:41:38 EST 2018


Guido van Rossum <guido at python.org> added the comment:

Josh, I have to ask -- do you have plans to rewrite the __subclasses__
implementation? Because at this point I don't really feel like arguing over
the OP's use case. It looks like you have a strong objection over the
requested feature that's quite independent from the validity of any use
cases, and I'm curious why. The argument "but then we couldn't change the
implementation in some future version" feels pretty weak.

----------

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


More information about the Python-bugs-list mailing list