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 <rep...@bugs.python.org>
<https://bugs.python.org/issue31554>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to