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
I'm trying to write some code using the so-called pure Python mode, but apparently there is no full parity between types and constants in the compiled and pure Python modes.
Code to reproduce the behaviour:
importcythonptr: cython.p_uchar
$ python test.py
<...>
AttributeError: module 'cython' has no attribute 'p_uchar'. Did you mean: 'p_char'?
However cythonize works just fine:
$ cythonize -i test.py
Compiling /tmp/test.py because it changed.
(Some warnings about 'language_level' not set, compiles fine otherwise.)
Expected behaviour
If Cython pure-Python mode code compiles, I expect it to be importable even when not compiled.
OS
Linux
Python version
CPython 3.10.12
Cython version
3.0.7
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to write some code using the so-called pure Python mode, but apparently there is no full parity between types and constants in the compiled and pure Python modes.
Code to reproduce the behaviour:
However
cythonize
works just fine:Expected behaviour
If Cython pure-Python mode code compiles, I expect it to be importable even when not compiled.
OS
Linux
Python version
CPython 3.10.12
Cython version
3.0.7
Additional context
No response
The text was updated successfully, but these errors were encountered: