summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-16 12:23:41 (GMT)
committerGitHub <noreply@github.com>2021-12-16 12:23:41 (GMT)
commit0194bbbee6a12264e93d3217c774e226f0a1737d (patch)
treed27ed65db9491d17d64d65674a4e540017cbe20c
parentfb5d314da8f74e624f1ba30389f8ec305e2553a4 (diff)
downloadcpython-0194bbbee6a12264e93d3217c774e226f0a1737d.zip
cpython-0194bbbee6a12264e93d3217c774e226f0a1737d.tar.gz
cpython-0194bbbee6a12264e93d3217c774e226f0a1737d.tar.bz2
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30133)
(cherry picked from commit a951c95a13c3555ac8fb1c8ee615ba3930ccc6f7) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
-rw-r--r--Doc/library/zipimport.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/zipimport.rst b/Doc/library/zipimport.rst
index cd7030f..fe1adca 100644
--- a/Doc/library/zipimport.rst
+++ b/Doc/library/zipimport.rst
@@ -23,8 +23,8 @@ and a path within the archive can be specified to only import from a
subdirectory. For example, the path :file:`example.zip/lib/` would only
import from the :file:`lib/` subdirectory within the archive.
-Any files may be present in the ZIP archive, but only files :file:`.py` and
-:file:`.pyc` are available for import. ZIP import of dynamic modules
+Any files may be present in the ZIP archive, but importers are only invoked for
+:file:`.py` and :file:`.pyc` files. ZIP import of dynamic modules
(:file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only contains
:file:`.py` files, Python will not attempt to modify the archive by adding the
corresponding :file:`.pyc` file, meaning that if a ZIP archive