[New-bugs-announce] [issue44095] Add suffix property to zipfile.Path

Jakub Nowak report at bugs.python.org
Mon May 10 01:29:23 EDT 2021


New submission from Jakub Nowak <jakub.jakub.nowak at gmail.com>:

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', files))

Besides suffix also most of the other pathlib.PurePath properties and methods could be added.

----------
components: Library (Lib)
messages: 393352
nosy: MrQubo
priority: normal
severity: normal
status: open
title: Add suffix property to zipfile.Path
type: enhancement
versions: Python 3.9

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


More information about the New-bugs-announce mailing list