Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a951c95

Browse files
authored
bpo-28816: [doc] clarify that zipimport invokes importers only for python files (GH-30060)
1 parent f62420c commit a951c95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/zipimport.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ and a path within the archive can be specified to only import from a
2323
subdirectory. For example, the path :file:`example.zip/lib/` would only
2424
import from the :file:`lib/` subdirectory within the archive.
2525

26-
Any files may be present in the ZIP archive, but only files :file:`.py` and
27-
:file:`.pyc` are available for import. ZIP import of dynamic modules
26+
Any files may be present in the ZIP archive, but importers are only invoked for
27+
:file:`.py` and :file:`.pyc` files. ZIP import of dynamic modules
2828
(:file:`.pyd`, :file:`.so`) is disallowed. Note that if an archive only contains
2929
:file:`.py` files, Python will not attempt to modify the archive by adding the
3030
corresponding :file:`.pyc` file, meaning that if a ZIP archive

0 commit comments

Comments
 (0)