[New-bugs-announce] [issue23936] Wrong references to deprecated find_module instead of find_spec
Raúl Cumplido
report at bugs.python.org
Mon Apr 13 19:22:55 CEST 2015
New submission from Raúl Cumplido:
While taking a look on the import mechanisms I've seen in the documentation that find_module has been deprecated for find_spec, but on different parts of the documentation there are still references to find_module, as in the definition of sys.meta_path (https://docs.python.org/3/library/sys.html#sys.meta_path).
Shouldn't it be (example on this case) a list of finder objects that have their find_spec() methods called, instead of find_module method?
I've been taking a look on _bootstrap.py and I can see we call find_spec:
for finder in sys.meta_path:
with _ImportLockContext():
try:
find_spec = finder.find_spec
If you agree with me that this is wrong I'll submit a patch to fix it.
----------
assignee: docs at python
components: Documentation
messages: 240671
nosy: brett.cannon, docs at python, eric.snow, raulcd
priority: normal
severity: normal
status: open
title: Wrong references to deprecated find_module instead of find_spec
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23936>
_______________________________________
More information about the New-bugs-announce
mailing list