473,324 Members | 2,248 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

documentation of import from zip files?

Is the ability to import Python modules from zip files in 2.3
documented anywhere? I looked in the Language ref at the "import"
statement and in the Library Ref under "ZipFile" module.

I'd like to know the specifics of arcnames in the Python zipfiles,
such as which character is used to separate path parts.

Bill

Jul 18 '05 #1
2 2111

"Bill Janssen" <ja*****@parc.com> wrote in message
news:ma*************************************@pytho n.org...
Is the ability to import Python modules from zip files in 2.3
documented anywhere? I looked in the Language ref at the "import"
statement and in the Library Ref under "ZipFile" module.

I'd like to know the specifics of arcnames in the Python zipfiles,
such as which character is used to separate path parts.
Look in the "What's New in Python 2.3" document. As far
as directory structure, if the zip module can figure out the directory
structure, so can import. There's no special requirements for
separating directories, or for separating pathnames in the Pythonpath
statement.

The 'zipimport' module doesn't seem to be separately
documented, probably because it's automatically
loaded if a .zip file is detected in the Pythonpath.

John Roth
Bill

Jul 18 '05 #2
In article <vo************@news.supernews.com>,
"John Roth" <ne********@jhrothjr.com> wrote:
"Bill Janssen" <ja*****@parc.com> wrote in message
news:ma*************************************@pytho n.org...
Is the ability to import Python modules from zip files in 2.3
documented anywhere? I looked in the Language ref at the "import"
statement and in the Library Ref under "ZipFile" module.

I'd like to know the specifics of arcnames in the Python zipfiles,
such as which character is used to separate path parts.

It's a standard zip file, so the path separator is '/'.
Look in the "What's New in Python 2.3" document. As far
as directory structure, if the zip module can figure out the directory
structure, so can import. There's no special requirements for
separating directories, or for separating pathnames in the Pythonpath
statement.

The 'zipimport' module doesn't seem to be separately
documented, probably because it's automatically
loaded if a .zip file is detected in the Pythonpath.


See also PEP 302.

Just
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brian Beck | last post by:
Hi. I'm having some problems with code based directly on the following httplib documentation code: http://www.zvon.org/other/python/doc21/lib/httplib-examples.html I've included the code and...
0
by: Carlos Ribeiro | last post by:
I am looking for information on packages & import hooks, including simple examples on how to implement a simple import hook. Quick googling turns out some documents, such as: -- PEP 302:...
0
by: Almoni | last post by:
Hi, I have a few .xsd files that include each other in the following way: <!-- lets call the main schema file AA.xsd and it includes BB.xsd inside it --> <xs:schema...
0
by: Terry Hancock | last post by:
I've been trying to use "happydoc" to document a source tree that I'm working on. It does pretty much what I want, except: Version 2.1: Creates a weird directory structure for the HTML pages...
1
by: mirandacascade | last post by:
O/S: Windows 2K Vsn of Python: 2.4 Currently: 1) Folder structure: \workarea\ <- ElementTree files reside here \xml\ \dom\
1
by: Dan | last post by:
Could someone please help me with auto importing a series of data files into an Access table. I tried to follow code given below in a previous messagebut i'm getting error messages. Here's my...
5
by: AA | last post by:
Hello, I was commented my class and copile it, when the compilation finished th VS create the XML document It is cool because I can use to generate MSHelp documentation but, when I import my...
3
by: ninrulz | last post by:
I will try to explain my situation. I know that it is hard to offers solutions without fully understanding what people would like to achieve. I receive 2 csv files every month. The csv files...
1
by: Efrat Regev | last post by:
Hello, I'm trying to write something that will translate Python code to pseudo-code (for teaching purposes). Googling around indicated that the compiler module is pertinent, especially creating...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.