Reputation: 1537
I can find list of functions which I can cimport from libc, libcpp, cpython, etc in *.pxd files inside Includes folder of Cython package.
However, I can not find such a list for cython.
For example, I know I can do this
from cython.view cimport array
However, I do not know what else I can cimport from cython.
Where do I find a comprehensive list of things cimportable from cython namespace (either in documentation or source codes)?
Upvotes: 1
Views: 129
Reputation: 30908
Not really. A lot of them are compiler directives, and are documented.
However, there's definitely some directives which aren't documented because they're only for internal testing use or are old and no longer recommended or just haven't been documented.
The majority appear in Cython/Compiler/Shadow.py largely as dummy declarations just so they exist and thus pure-python mode works. However, this isn't hugely readably and doesn't really tell you what they do.
The contents of cython.view
are a further exception and are generated internally by the compiler. I think (but not 100% sure) that this is the only such exception.
Mostly it isn't really a useful exercise to be trying to find things in the cython
namespace that aren't documented.
Upvotes: 3