Language Basics¶
Note
The sections in this page were moved to the Language Basics in the userguide.
Cython File Types¶
This section was moved to Cython file types.
Implementation File¶
What can it contain?¶
What can’t it contain?¶
Definition File¶
What can it contain?¶
What can’t it contain?¶
What else?¶
cimport¶
compilation order¶
Include File¶
What can it contain?¶
How do I use it?¶
Declaring Data Types¶
This section was moved to Declaring Data Types.
The cdef Statement¶
This section was moved to C variable and type definitions.
Grouping cdef Declarations¶
This section was moved to C variable and type definitions.
C types and Python classes¶
This section was moved to Types.
Parameters¶
This section was moved to Python functions vs. C functions.
Automatic Type Conversion¶
This section was moved to Automatic type conversions.
Type Casting¶
This section was moved to Type Casting.
Checked Type Casts¶
This section was moved to Checked Type Casts.
Statements and Expressions¶
This section was moved to Statements and expressions.
Differences Between Cython and C¶
Scope Rules¶
Built-in Constants¶
Operator Precedence¶
For-loops¶
Functions and Methods¶
This section was moved to Python functions vs. C functions.
Callable from Python (def)¶
Callable from C (cdef)¶
Callable from both Python and C (cpdef)¶
Overriding¶
This section was moved to Overriding in extension types.
Function Pointers¶
Python Built-ins¶
This section was moved to Built-in Functions.
Optional Arguments¶
This section was moved to Optional Arguments.
Keyword-only Arguments¶
This section was moved to Keyword-only Arguments.
Error and Exception Handling¶
This section was moved to Error return values.
Checking return values for non-Cython functions..¶
This section was moved to Checking return values of non-Cython functions.
Conditional Compilation¶
This section was moved to Conditional Compilation.