[issue30645] imp.py: load_package: function has a buggy loop with `path = os.path.join(path, '__init__'+extension)`

Brett Cannon report at bugs.python.org
Tue Jun 13 18:20:38 EDT 2017


Brett Cannon added the comment:

Three things.

One, the imp module is deprecated, so please don't use it.

Two, all undocumented functions in the imp module are considered unsupported, so double-please don't use imp.load_package(). :)

Three, we can't look at that patch without the person supplying it signing Python's CLA as we risk running afoul of things legally.

----------

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


More information about the Python-bugs-list mailing list