Interpreted Versus Compiled ExecutionDynamic Versus Static TypingStatic Type Declaration with cdefAutomatic Type Inference in CythonC Pointers in CythonMixing Statically and Dynamically Typed VariablesThe bint typeIntegral type conversions and overflowFloating-point type conversionsComplex typesbytes typestr and unicode typesStatically Declaring Variables with a Python TypeStatic Typing for SpeedReference Counting and Static String TypesCython’s Three Kinds of FunctionsPython Functions in Cython with the def KeywordC Functions in Cython with the cdef KeywordCombining def and cdef Functions with cpdefFunctions and Exception HandlingFunctions and the embedsignature Compiler DirectiveType Coercion and CastingDeclaring and Using structs, unions, and enumsType Aliasing with ctypedefCython for Loops and while LoopsGuidelines for Efficient LoopsLoop ExampleThe Cython PreprocessorBridging the Python 2 and Python 3 Dividestr, unicode, bytes, and All ThatSummary