This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author guettli
Recipients guettli
Date 2017-07-17.14:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1500301199.65.0.488290423611.issue30948@psf.upfronthosting.co.za>
In-reply-to
Content
AFAIK cls.__subclasses__() only returns the classes which the interpreter has already loaded.

This means there can be more subclasses in modules where not imported by the current interpreter up to now.

https://docs.python.org/3.7/library/stdtypes.html?highlight=subclasses#class.__subclasses__

I think it would be nice to add a hint to the docs that python imports are lazy.

What do you think?
History
Date User Action Args
2017-07-17 14:19:59guettlisetrecipients: + guettli
2017-07-17 14:19:59guettlisetmessageid: <1500301199.65.0.488290423611.issue30948@psf.upfronthosting.co.za>
2017-07-17 14:19:59guettlilinkissue30948 messages
2017-07-17 14:19:59guettlicreate