// guides
CPython guides: the interpreter, explained
Eight in-depth guides by the CPython Editorial Team: Python vs CPython, the name, real-world uses, calling C, Cython, installation, whether you need it, and how the interpreter runs bytecode.
-
01
What's the Difference Between Python and CPython?Python is a language; CPython is the program that runs it. Learn the real difference between Python and CPython, with examples and a comparison table. 7 min
-
02
Why Is Python Called CPython? The Name ExplainedWhy do people call Python 'CPython'? The C stands for the C language the interpreter is written in. Learn the history and why the name matters. 6 min
-
03
What Is CPython Used For? Real-World Uses and ExamplesWhat is CPython used for? From running scripts and web apps to data science, automation and C extensions, see where the standard Python interpreter fits. 8 min
-
04
Can I Run C in Python? 5 Ways to Call C Code from CPythonYes, you can run C code from Python. Compare ctypes, cffi, C extensions, Cython and pybind11, with short CPython examples and when to use each. 9 min
-
05
CPython vs Cython: Interpreter vs Compiler, ExplainedCPython vs Cython: one runs Python, the other compiles Python-like code to C extensions. Compare purpose, speed, workflow and when to use Cython with CPython. 7 min
-
06
How to Install CPython: Installers, Package Managers or GitHub SourceHow to install CPython on Windows, macOS and Linux, from the python.org installer, a package manager, or by building the CPython GitHub source. 9 min
-
07
Do I Need CPython? A Quick Decision GuideDo I need CPython? If you use Python, you probably already have it. This guide explains when CPython is enough, when to build it, and when to consider PyPy or MicroPython. 6 min
-
08
How the CPython Interpreter Works: A Bytecode ExampleSee how the CPython interpreter turns code into tokens, an AST, bytecode and results, with a hands-on CPython example using the dis and ast modules. 9 min