Table of contents
- Cython 0.19.1 documentation
- Getting Started
- Tutorials
-
Users Guide
- Overview
- Basic Tutorial
- Language Basics
- Extension Types
- Special Methods of Extension Types
- Sharing Declarations Between Cython Modules
- Interfacing with External C Code
- Source Files and Compilation
- Early Binding for Speed
- Using C++ in Cython
- Fused Types (Templates)
- Porting Cython code to PyPy
- Limitations
-
Differences between Cython and Pyrex
- Python 3 Support
- Conditional expressions "x if b else y" (Python 2.5)
- cdef inline
- Assignment on declaration (e.g. "cdef int spam = 5")
- 'by' expression in for loop (e.g. "for i from 0 <= i < 10 by 2")
- Boolean int type (e.g. it acts like a c int, but coerces to/from python as a boolean)
- Executable class bodies
- cpdef functions
- Automatic range conversion
- More friendly type casting
- Optional arguments in cdef/cpdef functions
- Function pointers in structs
- C++ Exception handling
- Synonyms
- Source code encoding
- Automatic typecheck
- From __future__ directives
- Pure Python mode
- Typed Memoryviews
- Using Parallelism
- Debugging your Cython program
- Indices and tables
-
Reference Guide
- Compilation
- Language Basics
- Extension Types
- Interfacing with Other Code
- Special Mention
- Limitations
- Compiler Directives
- Indices and tables