DevelopersTV

CPython — Hacking in your own functionality

tanmay bakshi — Jun 27, 2021 — tutorial

Why watch

This tutorial demonstrates how to modify the CPython interpreter source code to detect internal memory buffer resizing when Python appends to a list. The viewer learns why Python list appends achieve amortized O(1) complexity through this hands-on exploration of CPython internals. Ideal for developers with C programming experience who want to understand how Python's underlying implementation works.