[Import-SIG] making it feasible to rely on loaders for reading intra-package data files
Paul Moore
p.f.moore at gmail.com
Sat Feb 1 21:14:54 CET 2014
On 1 February 2014 19:36, Brett Cannon <brett at python.org> wrote:
> Not quite sure what you are suggesting as an in-memory zipfile vs. one that
> isn't. Any zipfile on sys.path has to be in-memory to read from to do a load
> so I don't know where you are drawing the distinction.
Normally you put a filesystem path to the zipfile onto sys.path. If I
load the zipfile via get_data() it's not got a filesystem path, I have
the raw zip data in memory. To import from it I have to write that
data to a file and put the filename onto sys.path.
Paul.
More information about the Import-SIG
mailing list