Skip to content

bpo-39830: Add zipfile.Path to __all__#19115

Merged
jaraco merged 1 commit into
python:masterfrom
ZackerySpytz:bpo-39830-zipfile-Path
Mar 23, 2020
Merged

bpo-39830: Add zipfile.Path to __all__#19115
jaraco merged 1 commit into
python:masterfrom
ZackerySpytz:bpo-39830-zipfile-Path

Conversation

@ZackerySpytz

@ZackerySpytz ZackerySpytz commented Mar 23, 2020

Copy link
Copy Markdown
Contributor

@tirkarthi tirkarthi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks @ZackerySpytz .

@jaraco jaraco left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Only concern - should this be backported to Python 3.8? My instinct is yes.

@jaraco
jaraco merged commit 9a81ab1 into python:master Mar 23, 2020
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @ZackerySpytz for the PR, and @jaraco for merging it 🌮🎉.. I'm working now to backport this PR to: 3.8.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

GH-19116 is a backport of this pull request to the 3.8 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 23, 2020
(cherry picked from commit 9a81ab1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@tirkarthi

Copy link
Copy Markdown
Member

It might cause problem for * imports since Path is already present in pathlib. I am not sure of the policy to change __all__ in released versions like 3.8 .

from pathlib import Path
from zipfile import *

@jaraco

jaraco commented May 26, 2020

Copy link
Copy Markdown
Member

Yesterday, I learned that mypy enforces the use of __all__ to determine valid imports from a module. By that reasoning, absence from __all__ is a bug and should be fixed.

jaraco pushed a commit that referenced this pull request May 26, 2020
(cherry picked from commit 9a81ab1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants