guide 01 / 08

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.

Bytecode-style illustration for: Python vs CPython: the difference

TL;DR

  • Python is the language: its grammar, rules and standard behavior.
  • CPython is the reference implementation, a C program that runs Python code.
  • Installing Python from python.org means installing CPython.
  • Other implementations such as PyPy, MicroPython and GraalPy run the same language differently.

01A language vs a program

The confusion is understandable: people say “Python” for both the language and the thing that runs it. They are two different things.

  • Python is a programming language, a set of rules about what valid code looks like and what it means. Those rules live in the Python Language Reference and in PEPs (Python Enhancement Proposals).
  • CPython is a program, an interpreter written mainly in C, that reads Python source code and executes it.

An analogy: English is a language, and a particular person reading a book aloud is an implementation of English. Python is the language, and CPython is the most common reader.

02Why CPython is the one you already use

CPython is the reference implementation. The core developers build new language features in CPython first, and its behavior is the de facto standard for anything the written specification leaves open. The installers on python.org, the python3 package on Linux distributions, Homebrew's Python and the Microsoft Store Python are all CPython.

You can confirm it in two lines:

>>> import sys, platform
>>> sys.implementation.name, platform.python_implementation()
('cpython', 'CPython')

03Side-by-side comparison

PythonCPython
What it isA programming languageAn interpreter/runtime for that language
Defined byLanguage Reference + PEPsSource code at github.com/python/cpython
Written in(not applicable)C, with much of the standard library in Python
Version example“Python 3.15” (the language level)CPython 3.15.2 (a specific build)
Alternatives(none, it is the language)PyPy, MicroPython, GraalPy, Jython

04Where the line gets blurry

Some behavior that people treat as “Python” is really a CPython detail:

  • Reference counting: CPython frees most objects the moment their last reference disappears. PyPy uses a different garbage collector, so file handles you never close may stay open longer there.
  • The GIL: the Global Interpreter Lock is a CPython implementation feature, not part of the language. CPython now also offers a free-threaded build without it.
  • The C API: extension modules written against Python.h target CPython specifically.
  • id() values: in CPython, id(obj) happens to be a memory address. The language only promises a unique integer.

Rule of thumb: if your code relies on one of these details, you are writing CPython code, not just Python code.

05Version numbers explained

When python.org announces “Python 3.15.0,” it is releasing CPython 3.15.0, which implements the Python 3.15 language. Python 3.15.0 was released on October 9, 2026, and the latest bugfix release when we checked was 3.15.2. Meanwhile, the CPython main branch on GitHub is already developing 3.16.

06Does the difference affect my code?

For most scripts and applications, no. Write standard Python, use the standard library, and your code will behave the same everywhere. The difference starts to matter when you:

  • depend on packages with compiled C extensions, which are built for CPython first;
  • rely on objects being freed immediately (always close files with with instead);
  • run CPU-heavy threads, where the GIL in CPython's standard build matters;
  • embed Python inside another program through the C API.

07Other implementations of the same language

ImplementationWritten inMain strength
CPythonCReference behavior, widest package support
PyPyRPythonJIT compiler, fast long-running pure-Python code
MicroPythonCRuns on microcontrollers with very little RAM
GraalPyJava (Truffle)Runs on the GraalVM and integrates with Java

All of them aim to run the same Python code. What differs is speed, memory use, startup time and how well they support C extensions. Because CPython defines the reference behavior, the others measure their compatibility against it.

08So which word should you use?

Say Python when you mean the language (“I write Python”). Say CPython when the implementation matters, for example when you discuss the GIL, C extensions, performance internals or building from source. To explore the implementation yourself, download its source:

??Quick questions

Q01Is CPython the same as Python?

CPython is the standard program that runs Python. For most users the two behave identically, but technically Python is the language and CPython is one implementation of it.

Q02Is CPython faster than Python?

The question mixes categories. Python has no speed of its own. CPython's speed can be compared with other implementations such as PyPy.