Skip to content
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] Some aliases are unavailable in Python mode (p_uchar) #5934

Closed
vytas7 opened this issue Jan 1, 2024 · 2 comments
Closed

[BUG] Some aliases are unavailable in Python mode (p_uchar) #5934

vytas7 opened this issue Jan 1, 2024 · 2 comments

Comments

@vytas7
Copy link

vytas7 commented Jan 1, 2024

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:

import cython

ptr: 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

@scoder
Copy link
Contributor

scoder commented Jan 1, 2024

Duplicate of #4227

@scoder scoder marked this as a duplicate of #4227 Jan 1, 2024
@scoder scoder closed this as not planned Won't fix, can't repro, duplicate, stale Jan 1, 2024
@scoder scoder reopened this Jan 1, 2024
@scoder
Copy link
Contributor

scoder commented Jan 1, 2024

Sorry, my fault. I checked and the unsigned and signed pointer types are really missing. I'll add them.
Thanks for the report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants