[New-bugs-announce] [issue31554] Warn when __loader__ != __spec__.loader
Brett Cannon
report at bugs.python.org
Fri Sep 22 14:42:23 EDT 2017
New submission from Brett Cannon:
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.
----------
components: Library (Lib)
messages: 302764
nosy: brett.cannon, eric.snow, ncoghlan
priority: low
severity: normal
stage: test needed
status: open
title: Warn when __loader__ != __spec__.loader
type: enhancement
versions: Python 3.7
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue31554>
_______________________________________
More information about the New-bugs-announce
mailing list