This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author raulcd
Recipients brett.cannon, docs@python, eric.snow, raulcd
Date 2015-04-13.17:22:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428945775.22.0.0538000929194.issue23936@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-04-13 17:22:55raulcdsetrecipients: + raulcd, brett.cannon, docs@python, eric.snow
2015-04-13 17:22:55raulcdsetmessageid: <1428945775.22.0.0538000929194.issue23936@psf.upfronthosting.co.za>
2015-04-13 17:22:55raulcdlinkissue23936 messages
2015-04-13 17:22:55raulcdcreate