[New-bugs-announce] [issue42090] zipfile.Path.joinpath API inconsistent with pathlib.Path.joinpath

conchylicultor report at bugs.python.org
Mon Oct 19 16:58:28 EDT 2020


New submission from conchylicultor <etiennefg.pot at gmail.com>:

The following code fail with zipfile.Path, but works with pathlib.Path:

```
path = path.joinpath().joinpath('other', 'other')
```

Zipfile: https://github.com/python/cpython/blob/95ad890a7b0341d8d2fde13f824bc24c65a8ece0/Lib/zipfile.py#L2363

```
def joinpath(self, add):
```

Pathlib: https://github.com/python/cpython/blob/95ad890a7b0341d8d2fde13f824bc24c65a8ece0/Lib/pathlib.py#L955

```
def joinpath(self, *args):
```

----------
components: Library (Lib)
messages: 379016
nosy: conchylicultor
priority: normal
severity: normal
status: open
title: zipfile.Path.joinpath API inconsistent with pathlib.Path.joinpath
versions: Python 3.10

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


More information about the New-bugs-announce mailing list