[Import-SIG] making it feasible to rely on loaders for reading intra-package data files

Paul Moore p.f.moore at gmail.com
Mon Feb 3 18:47:16 CET 2014


On 3 February 2014 16:54, Brett Cannon <brett at python.org> wrote:
> Interesting idea, but I don't know how backwards-compatible it would be. But
> since pathlib itself has several subclasses I don't see why there couldn't
> be some way to construct something that understood what part of a path was a
> zipfile and what was a path within the zipfile.

Yeah, I had a play with it last night and it certainly looks
plausible. There's a backport of pathlib on PyPI that supports 2.7, so
backwards compatibility is reasonable. Partlib's internals are pretty
impressive - easy to hook into and extend. I have a sort-of proof of
concept, but I need to write some tests to find out if the code
actually does what I think it does (note to self - start actually
doing test-driven coding :-))

Paul


More information about the Import-SIG mailing list