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@python
components: Documentation
messages: 240671
nosy: brett.cannon, docs@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 <[email protected]>
<http://bugs.python.org/issue23936>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com