classification
Title: Warn when __loader__ != __spec__.loader
Type: enhancement Stage: test needed
Components: Library (Lib) Versions: Python 3.7
process
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 2017-12-13 15:57 by eric.smith.

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.
History
Date User Action Args
2017-12-13 15:57:43eric.smithsetnosy: + eric.smith
2017-12-13 15:26:59barrysetnosy: + barry
2017-09-22 18:42:23brett.cannoncreate