-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Running Cython fails with 3.14.0a1 - a list attribute gets changed to None
#125868
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
Comments
None
My guess is that #122620 is to blame. If a value is Suppose we had a dict
I'm not sure how such a table would come into being, but it might be possible through a convoluted sequence of additions and deletions If a
which definitely isn't legal. |
I tried to compile numpy from @markshannon fix branch and the Cython compilation suddenly worked. Thank you! |
Closing as the (reported) fix went into 3.14.0a2 |
Bug report
Bug description:
To be clear - this issue is just about running the Cython itself (i.e. pure Python code). It is not about compiled extension modules.
To reproduce
https://github.com/cython/cython.git
git checkout daed3bce0bf0c6fb9012170cb479f64e8b9532cd
(probably not important, but let's make sure we're all definitely starting from the same point).python3.14 cython.py Cython/Compiler/Parsing.py
- this runs Cython on one of its own filesYou get an output that ends with
To try to debug it some more I add a constructor to
TupleNode
(in Cython/Compiler/ExprNodes.py at line 8627) with a breakpoint:So the the constructor call to
TupleNode
args
isNone
. But in the function it's being called from it's a list containing aNameNode
(which is what I think it should be). That's as far as I've got with debugging.This has apparently been bisected to #122620 (but not by me).
CPython versions tested on:
3.14
Operating systems tested on:
Linux
Linked PRs
The text was updated successfully, but these errors were encountered: