[issue44095] Add suffix property to zipfile.Path

2021-05-14 Thread Jakub Nowak
Jakub Nowak added the comment: Thank for your interest Miguel. I have no experience with CPython codebase so I'll be glad if you work on this. I think treating ZipFile's like a separate drive would be the best. If we agree on this then probably all of the properties and methods fr

[issue44095] Add suffix property to zipfile.Path

2021-05-09 Thread Jakub Nowak
New submission from Jakub Nowak : suffix property is present on pathlib.Path (specifically pathlib.PurePath) and it could also be added to zipfile.Path for consistency. My use case is filtering files by suffix: patch_files = list(filter(lambda file: file.suffix == '.patch&#x