Issue 31554: Warn when loader != spec.loader (original) (raw)

Issue31554

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.
History
Date User Action Args
2022-04-11 14:58:52 admin set github: 75735
2017-12-13 15:57:43 eric.smith set nosy: + eric.smith
2017-12-13 15:26:59 barry set nosy: + barry
2017-09-22 18:42:23 brett.cannon create