Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python -m zipfile issues RuntimeWarning #112578

Closed
hauntsaninja opened this issue Dec 1, 2023 · 0 comments
Closed

python -m zipfile issues RuntimeWarning #112578

hauntsaninja opened this issue Dec 1, 2023 · 0 comments
Labels
stdlib Python modules in the Lib dir

Comments

@hauntsaninja
Copy link
Contributor

hauntsaninja commented Dec 1, 2023

Running python -m zipfile on main gives:

<frozen runpy>:128: RuntimeWarning: 'zipfile.__main__' found in sys.modules after import of package 'zipfile', but prior to execution of 'zipfile.__main__'; this may result in unpredictable behaviour

This can be traced to #98103
Originally reported at #98098 (comment)

Linked PRs

hauntsaninja added a commit to hauntsaninja/cpython that referenced this issue Dec 1, 2023
@iritkatriel iritkatriel added the stdlib Python modules in the Lib dir label Dec 1, 2023
miss-islington pushed a commit to miss-islington/cpython that referenced this issue Dec 3, 2023
…2579)

(cherry picked from commit 29e6c7b)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
serhiy-storchaka pushed a commit that referenced this issue Dec 3, 2023
…GH-112646)

(cherry picked from commit 29e6c7b)

Co-authored-by: Shantanu <12621235+hauntsaninja@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir
Projects
None yet
Development

No branches or pull requests

3 participants