Note: The code samples in this tutorial usesdoctest to make surethat they actually work. Since some code samples behave differentlyunder Linux, Windows, or Mac OS X, they contain doctest directives incomments.
Note: Quite some code samples references the ctypesc_int type.This type is an alias to thec_long type on 32-bit systems. So,you should not be confused ifc_long is printed if you wouldexpectc_int - they are actually the same type.