[issue44095] Add suffix property to zipfile.Path

Jason R. Coombs report at bugs.python.org
Fri May 14 13:55:48 EDT 2021


Jason R. Coombs <jaraco at jaraco.com> added the comment:

Sounds good to me. In general, it's easier to contribute first to https://github.com/jaraco/zipp and those changes can be readily merged into CPython. No worries, though. If these changes can be accepted here, I should be able to graft them onto jaraco/zipp as well, and thus provide the functionality for older Pythons.

At this point, Python 3.10 is frozen for features, which this change would be, so I'm updating the target version to 3.11.

> It's not meant to be 100% consistent with pathlib.Path.

That's right. It's meant to provide whatever consistency makes sense, but a subset of what's available on pathlib.Path. Happy to accept any contributions that would be useful.

>> A pathlib-compatible interface
> only a few methods are supported

Indeed, perhaps the documentation should be more clear about what is and isn't supported.

----------
versions: +Python 3.11 -Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44095>
_______________________________________


More information about the Python-bugs-list mailing list