mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060) (GH-30134)
(cherry picked from commit a951c95a13
)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
This commit is contained in:
parent
309614f1f7
commit
4c1effaaee
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue