
This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.
Created on2019-07-07 20:54 byjaraco, last changed2022-04-11 14:59 byadmin. This issue is nowclosed.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 14638 | merged | jaraco,2019-07-07 21:07 | |
| PR 14641 | merged | miss-islington,2019-07-07 21:39 | |
| Messages (3) | |||
|---|---|---|---|
| msg347479 -(view) | Author: Jason R. Coombs (jaraco)*![]() | Date: 2019-07-07 20:54 | |
Originally reported inhttps://github.com/jaraco/zipp/issues/7, the parent of a Path object referencing a directory is returning the incorrect result:cpython master $ docker run -it python:rc-buster Python 3.8.0b1 (default, Jun 27 2019, 22:38:51) [GCC 8.3.0] on linuxType "help", "copyright", "credits" or "license" for more information.>>> import zipfile>>> import io>>> zf = zipfile.ZipFile(io.BytesIO(), 'w')>>> p = zipfile.Path(zf)>>> p.joinpath('missing/').parentPath(None, 'missing/')>>> p.joinpath('missing/').parent.at'missing/'The expected value is '' as the parent of a single-level directory is the parent directory. | |||
| msg347480 -(view) | Author: Jason R. Coombs (jaraco)*![]() | Date: 2019-07-07 21:37 | |
New changeset38f44b4a4adc37e8f5f8971917d8b3145f351a56 by Jason R. Coombs in branch 'master':bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638)https://github.com/python/cpython/commit/38f44b4a4adc37e8f5f8971917d8b3145f351a56 | |||
| msg347481 -(view) | Author: Jason R. Coombs (jaraco)*![]() | Date: 2019-07-07 22:05 | |
New changeset66905d14672517d50dc8ba516b9839f9ddbcc131 by Jason R. Coombs (Miss Islington (bot)) in branch '3.8':bpo-37520: Correct behavior for zipfile.Path.parent (GH-14638) (GH-14641)https://github.com/python/cpython/commit/66905d14672517d50dc8ba516b9839f9ddbcc131 | |||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:17 | admin | set | github: 81701 |
| 2019-07-07 22:07:48 | jaraco | set | status: open -> closed resolution: fixed stage: patch review -> resolved |
| 2019-07-07 22:05:57 | jaraco | set | messages: +msg347481 |
| 2019-07-07 21:39:00 | miss-islington | set | pull_requests: +pull_request14453 |
| 2019-07-07 21:37:53 | jaraco | set | messages: +msg347480 |
| 2019-07-07 21:07:31 | jaraco | set | keywords: +patch stage: patch review pull_requests: +pull_request14452 |
| 2019-07-07 20:54:03 | jaraco | create | |