~/talk

Understanding Python from the inside: C concepts to dive into CPython fearless

Talkat PyCon Italia 2025 · 2025-05-28..05-31· [python, compilers-and-language-design]
links:none on file
slides:none on file

Shows that CPython is ~35.8% C and walks through compiled binaries to find main -> pybytes_main -> pymain, then inspects PyObject/PyTypeObject structs to explain how types and pointers map to fields. Covers C basics (pointers, malloc/free), refcount lifecycle, and C API calls like PyUnicode_FromString, PyList_Append and PyArg_ParseTupleAndKeywords. Demonstrates building a minimal C extension module, using a binary inspector (GDV) and publishes code/examples in the repo for hands‑on reproduction.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 4:00Programming languages and C
  3. 12:05Exploring CPython internals
  4. 16:01Python objects in C
  5. 20:33C API and real-world use
  6. 24:04Python extensions in C
  7. 27:02Q&A and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.