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.

Title: Warn when __loader__ != __spec__.loader
Type: enhancement Stage: test needed
Components: Library (Lib) Versions: Python 3.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: barry, brett.cannon, eric.smith, eric.snow, ncoghlan
Priority: low Keywords:

Created on 2017-09-22 18:42 by brett.cannon, last changed 2022-04-11 14:58 by admin.

Messages (1)
msg302764 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2017-09-22 18:42
There a couple of places where __loader__ is directly used (the biggest one probably being importlib.reload()). It would probably be good to warn when module.__loader__ != module.__spec__.loader like we do for __package__ to start transitioning people over to specs for accessing the loader instead of the direct module attribute.
Date User Action Args
2022-04-11 14:58:52adminsetgithub: 75735
2017-12-13 15:57:43eric.smithsetnosy: + eric.smith
2017-12-13 15:26:59barrysetnosy: + barry
2017-09-22 18:42:23brett.cannoncreate