Welcome to Cython Guidelines!¶
The project aims to give general guidelines and good advice about using Cython - how you should use it, what it’s suitable for, potential pitfalls, and so forth. It’s largely my personal opinion as opposed to strict documentation.
Contents:
- Themes
- Individual Articles
- What Cython is not designed for
- Don’t be afraid to lie to Cython
- Beware automatic type conversions
- The Python list is surprisingly good
- The bundled .pxd files aren’t magic
- Consider your compiler directives carefully
- Try not to return typed memoryviews
- Your Python interface need not match what it’s wrapping
- What’s the difference between
def,cdef, andcpdeffunctions - You probably don’t need to release the GIL
- Memoryviews are views of existing memory
- Troubleshooting