-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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 3.13 breaks circular imports during single phase init of extension module #123880
Labels
Comments
hauntsaninja
added
type-bug
An unexpected behavior, bug, or error
release-blocker
labels
Sep 9, 2024
encukou
added a commit
to encukou/cpython
that referenced
this issue
Sep 11, 2024
encukou
added a commit
to encukou/cpython
that referenced
this issue
Sep 11, 2024
encukou
added a commit
that referenced
this issue
Sep 20, 2024
…3950) Co-authored-by: Shantanu <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Sep 20, 2024
…ythonGH-123950) (cherry picked from commit aee219f) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Shantanu <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
savannahostrowski
pushed a commit
to savannahostrowski/cpython
that referenced
this issue
Sep 22, 2024
…ythonGH-123950) Co-authored-by: Shantanu <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
savannahostrowski
pushed a commit
to savannahostrowski/cpython
that referenced
this issue
Sep 22, 2024
…ythonGH-123950) Co-authored-by: Shantanu <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
Yhg1s
pushed a commit
that referenced
this issue
Sep 23, 2024
…GH-123950) (#124273) gh-123880: Allow recursive import of single-phase-init modules (GH-123950) (cherry picked from commit aee219f) Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Shantanu <[email protected]> Co-authored-by: Brett Cannon <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Here's a bash script to reproduce:
This produces:
and an assertion failure in debug builds.
The new error comes from #118532 cc @ericsnowcurrently
It's unclear whether this breaking change is intentional, given no mention in documentation and the assert.
This affects the mypyc transpiler, see python/mypy#17748 for details and for an end-to-end repro. This means for instance that mypy and black cannot currently be compiled for Python 3.13. Changing mypyc to use multi-phase init is not an easy change because mypyc uses globals.
CPython versions tested on:
3.13
Operating systems tested on:
No response
Linked PRs
The text was updated successfully, but these errors were encountered: