[issue28816] [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.

Irit Katriel report at bugs.python.org
Sun Dec 5 11:10:36 EST 2021


Irit Katriel <iritkatriel at gmail.com> added the comment:

I think that
(1) the patch is not worded very clearly
(2) the docs should not reference py2exe for instructions how to do something

Perhaps it would suffice to change the sentence:

Any files may be present in the ZIP archive, but only files .py and .pyc are available for import

to:

Any files may be present in the ZIP archive, but the importer is only invoked for .py and .pyc files

?

----------
keywords: +easy
nosy: +iritkatriel
status: open -> pending
title: Document if zipimport can respect import hooks to load custom files from zip. -> [doc] Clarify that zipimport does not invoke import hooks to load custom files from zip.
type:  -> enhancement
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.4, Python 3.5, Python 3.6, Python 3.7

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


More information about the Python-bugs-list mailing list