This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients FFY00, barneygale, ethan.furman, jaraco
Date 2022-01-01.23:19:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
I'd recommend not to block on issue24132. It's not obvious to me that subclassing would be valuable. It depends on how it's implemented, but in my experience, zipfile.Path doesn't and cannot implement the full interface of pathlib.Path. Instead zipfile.Path attempts to implement a protocol. At the time, the protocol was undefined, but now there exists importlib.resources.abc.Traversable (https://docs.python.org/3/library/importlib.html#importlib.abc.Traversable), the interface needed by importlib.resources. I'd honestly just create a standalone class, see if it can implement Traversable, and only then consider if it should implement a more complicated interface (such as something with symlink support or perhaps even later subclassing from pathlib.Path).
History
Date User Action Args
2022-01-01 23:19:12jaracosetrecipients: + jaraco, ethan.furman, FFY00, barneygale
2022-01-01 23:19:11jaracosetmessageid: <[email protected]>
2022-01-01 23:19:11jaracolinkissue45649 messages
2022-01-01 23:19:11jaracocreate