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 brett.cannon
Recipients brett.cannon, eric.snow, michaelanckaert, nanjekyejoannah, ncoghlan
Date 2019-08-09.16:50:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1565369443.78.0.261076999032.issue26131@roundup.psfhosted.org>
In-reply-to
Content
If you look at https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap.py and https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py you will notice a bunch of comments near all the calls to load_module(). Those are the places that should be somehow triggering a DeprecationWarning.

I think there's a compatibility shim function which would need to raise an exception so that anyone who has implemented load_module() as the only way to handle loading get a warning (but I think that requires certain loaders to have appropriate support which hopefully they have already but someone needs to double-check). After that every implementation of load_module() should have a warning.
History
Date User Action Args
2019-08-09 16:50:43brett.cannonsetrecipients: + brett.cannon, ncoghlan, eric.snow, michaelanckaert, nanjekyejoannah
2019-08-09 16:50:43brett.cannonsetmessageid: <1565369443.78.0.261076999032.issue26131@roundup.psfhosted.org>
2019-08-09 16:50:43brett.cannonlinkissue26131 messages
2019-08-09 16:50:43brett.cannoncreate