[issue46024] Different behaviour with zipfile

2021-12-20 Thread Eric V. Smith
Eric V. Smith added the comment: It looks like this was changed in https://bugs.python.org/issue42043 @jaraco might have some insights. -- nosy: +jaraco ___ Python tracker __

[issue46024] Different behaviour with zipfile

2021-12-20 Thread flvn.dev
flvn.dev added the comment: The output of: ```python print(repr(path), repr(ZipPath(path))) ``` gives this in both versions: ``` PosixPath('logs/2020/2020101.zip') Path('logs/2020/2020101.zip', '') PosixPath('logs/2021/2021101.zip') Path('logs/2021/2021101.zip', '') ``` -- ___

[issue46024] Different behaviour with zipfile

2021-12-11 Thread Eric V. Smith
Eric V. Smith added the comment: Actually, printing out: print(repr(path), repr(ZipPath(path))) would be more useful. If I don't hear back in a few days, I'm going to close this issue. -- status: pending -> open ___ Python tracker

[issue46024] Different behaviour with zipfile

2021-12-10 Thread Eric V. Smith
Change by Eric V. Smith : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue46024] Different behaviour with zipfile

2021-12-09 Thread Eric V. Smith
Eric V. Smith added the comment: What does "path" (the input to ZipPath) look like? Please change your print statement to: print(repr(path), ZipPath(path).name) Then send us the output from each version of python. -- nosy: +eric.smith ___ Python t

[issue46024] Different behaviour with zipfile

2021-12-09 Thread flvn.dev
New submission from flvn.dev : Given the this directory structure: ``` logs ├── 2020 │ ├── 2020101.zip | ├── ... ├── 2021 │ ├── 2021101.zip | ├── ... ``` The following piece of code: ```python from pathlib import Path from zipfile import Path as ZipPath for item in Path("logs").iterdir():