what does directive decorator `cython.internal` do? is it deprecated?

23 views
Skip to first unread message

raceychan

unread,
Mar 6, 2025, 12:47:45 AMMar 6
to cython-users
As I glance through some of the libs that uses cython for learning purpose, i noticed that 
some classes are decorated with 
```python
@cython.internal
cdef class SomeClass:
```

However, I am not able to find the documentation for this decorator, also, is there any documentation for directive decorators? I serached it with google as well as official documentation of cython, no results.

Any help is appreciated! thanks

da-woods

unread,
Mar 6, 2025, 3:28:49 AMMar 6
to cython...@googlegroups.com

They don't get added to the module dictionary so are only available from within Cython and not from Python code.

Most of the directives are documented here https://cython.readthedocs.io/en/latest/src/userguide/source_files_and_compilation.html#compiler-directives; a few class-specific ones are documented https://cython.readthedocs.io/en/latest/src/userguide/extension_types.html (e.g. `no_gc`). It's possible that `internal` is undocumented.

--

---
You received this message because you are subscribed to the Google Groups "cython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cython-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cython-users/18bcfb30-023b-40e2-adc4-9cf6d3447dadn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages