You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running cythonize bug.pyx on the following file bug.pyx hangs:
# cython: language_level=3strclassBug():
"""Cythonizing this creates an infinite loop."""
something ="hello"defdumb(self):
print("Say something: %s'%self.something)# Local Variables:# mode: Python# End
The traceback produced by hitting Control-C says:
Dependencies.py", line 509, in parse_dependencies
source, literals = strip_string_literals(source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/culler/Library/Python/3.12/lib/python/site-packages/Cython/Build/Dependencies.py", line 349, in strip_string_literals
while True:
^^^^
Code to reproduce the behaviour:
cythonize bug.pyx
Expected behaviour
An error message saying that the file contains an unterminated string literal.
OS
linux and macOS, at least
Python version
3.10 on linux and 3.12 on macOS
Cython version
3.0.8
Additional context
No response
The text was updated successfully, but these errors were encountered:
scoder
added a commit
to scoder/cython
that referenced
this issue
Feb 11, 2024
Describe the bug
Running
cythonize bug.pyx
on the following file bug.pyx hangs:The traceback produced by hitting Control-C says:
Code to reproduce the behaviour:
Expected behaviour
An error message saying that the file contains an unterminated string literal.
OS
linux and macOS, at least
Python version
3.10 on linux and 3.12 on macOS
Cython version
3.0.8
Additional context
No response
The text was updated successfully, but these errors were encountered: