Get $100 free credit - Build your next big idea @

A guided tour of the CPython source code

Episode #240, published Wed, Nov 27, 2019, recorded Wed, Oct 30, 2019.

This episode is carbon neutral.
You might use Python every day. But how much do you know about what happens under the covers, down at the C level? When you type something like variable = [], what are the byte-codes that accomplish this? How about the class backing the list itself?

All of these details live at the C-layer of CPython. On this episode, you'll meet Anthony Shaw. He and I take a guided tour of the CPython source code. After this, you won't have to guess what's happening. You can git-clone the CPython source code and see for yourself.

Links from the show

Anthony on Twitter: @anthonypjshaw

Python on Github:
RealPython article:
Memory management in Python article:
Dismissing Python Garbage Collection at Instagram:

Prior episodes with Anthony

#180: What's new in Python 3.7 and beyond:
#168: 10 Python security holes and how to plug them:
#155: Practical steps for moving to Python 3:
#132: Contributing to open source:

Want to go deeper? Check out our courses

Anthony Shaw
Anthony Shaw
Episode sponsored by
Ads served ethically
Click to show comments

Individuals can support this podcast directly via Patreon. Corporate sponsorship opportunities available here.
Become a friend of the show
Stay in the know and get a chance to win our contests.
See our privacy statement about email communications.