mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#1326: document and test zipimporter.archive and zipimporter.prefix.
This commit is contained in:
parent
ae98f50eca
commit
6a57c08dc8
3 changed files with 55 additions and 13 deletions
|
@ -555,8 +555,15 @@ PyDoc_STRVAR(zipimporter_doc,
|
|||
"zipimporter(archivepath) -> zipimporter object\n\
|
||||
\n\
|
||||
Create a new zipimporter instance. 'archivepath' must be a path to\n\
|
||||
a zipfile. ZipImportError is raised if 'archivepath' doesn't point to\n\
|
||||
a valid Zip archive.");
|
||||
a zipfile, or to a specific path inside a zipfile. For example, it can be\n\
|
||||
'/tmp/myimport.zip', or '/tmp/myimport.zip/mydirectory', if mydirectory is a\n\
|
||||
valid directory inside the archive.\n\
|
||||
\n\
|
||||
'ZipImportError is raised if 'archivepath' doesn't point to a valid Zip\n\
|
||||
archive.\n\
|
||||
\n\
|
||||
The 'archive' attribute of zipimporter objects contains the name of the\n\
|
||||
zipfile targeted.");
|
||||
|
||||
#define DEFERRED_ADDRESS(ADDR) 0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue