[issue34417] imp.find_module reacts badly to iterator

Brett Cannon report at bugs.python.org
Tue Aug 21 13:32:32 EDT 2018


Brett Cannon <brett at python.org> added the comment:

Saying "the available functionality is massively inefficient" is unnecessarily hostile towards those of us who actually wrote and maintain that code. Without diving into the code, chances are that requirement is there so that the C code can use macros to access the list as efficiently as possible.

Now if you want to propose specific changes to importlib's code for it to work with iterables instead of just lists then we would be happy to review the pull request.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34417>
_______________________________________


More information about the Python-bugs-list mailing list