New submission from conchylicultor <[email protected]>:
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 <[email protected]>
<https://bugs.python.org/issue42090>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com