[issue27276] FileFinder.find_spec() incompatible with finder specification

Paul Marinescu report at bugs.python.org
Thu Jun 9 00:58:21 EDT 2016


New submission from Paul Marinescu:

importlib.machinery.FileFinder.find_spec is incompatible with importlib.abc.MetaPathFinder.find_spec (different number of arguments).

The following leads to a runtime error:

loader = (importlib.machinery.SourceFileLoader, importlib.machinery.SOURCE_SUFFIXES)
sys.meta_path.append(importlib.machinery.FileFinder('/', loader))

----------
messages: 267961
nosy: paulmar
priority: normal
severity: normal
status: open
title: FileFinder.find_spec() incompatible with finder specification
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27276>
_______________________________________


More information about the Python-bugs-list mailing list