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
[BUG] Cannot be executed without any error message. #6166
Comments
It works correctly for me (on Linux) |
|
It works correctly for me on Windows with MSVC. |
I'm afraid I can't reproduce it, so won't be able to do much. You might get some information from the Otherwise it'd be a case of trying to catch the error in a C++ debugger. On Windows that'd be a case of starting Python, attaching the Python to the debugger from "debug -> attach to process" on the Visual Studio UI (not VS Code!), and the importing the module in Python. |
Alternatively you might be doing something odd in the buildpyd.py script. I'm testing just using |
@da-woods You are right, the option should be |
I'm reopening because I can reproduce it with |
In the master branch this fixed by 6fd204e although I don't think that can be backported. |
If the type of a call to `str` has already been deduced as unicode (because of language_level=3), then keep that type. This was causing optimizations to fail, where the optimization was made on the basis that the type was unicode and then that was reversed by the replacement of `str`. Fixes cython#6166. Most of this doesn't need to go into 3.1.
Describe the bug
Some line cannot be executed without any error message
Code to reproduce the behaviour:
Expected behaviour
OS
windows 11
Python version
3.11.5 amd64
Cython version
3.0.10
Additional context
msvc v140 or mingw64
when cython <= 3.0.a11 it work fine.
The text was updated successfully, but these errors were encountered: