Navigation
next
previous
|
Cython 0.21 documentation
»
Tutorials
ΒΆ
Basic Tutorial
The Basics of Cython
Cython Hello World
pyximport
: Cython Compilation the Easy Way
Fibonacci Fun
Primes
Language Details
Calling C functions
Dynamic linking
External declarations
Naming parameters
Using C libraries
Defining external declarations
Writing a wrapper class
Memory management
Compiling and linking
Mapping functionality
Handling errors
Testing the result
Callbacks
Extension types (aka. cdef classes)
pxd files
Caveats
Profiling
Cython Profiling Basics
Profiling Tutorial
Unicode and passing strings
Python string types in Cython code
General notes about C strings
Passing byte strings
Accepting strings from Python code
Dealing with “const”
Decoding bytes to text
Encoding text to bytes
C++ strings
Auto encoding and decoding
Source code encoding
Single bytes and characters
Narrow Unicode builds
Iteration
Windows and wide character APIs
Memory Allocation
Pure Python Mode
Augmenting .pxd
Magic Attributes
Working with NumPy
Adding types
Efficient indexing
Tuning indexing further
More generic code
Working with Python arrays
Safe usage with memory views
Zero-overhead, unsafe access to raw C pointer
Cloning, extending arrays
Further reading
Related work
Appendix: Installing MinGW on Windows
Previous topic
Faster code via static typing
Next topic
Basic Tutorial
This Page
Show Source
Quick search
Enter search terms or a module, class or function name.
Navigation
next
previous
|
Cython 0.21 documentation
»