Monitor performance issues & errors in your code

A guided tour of the CPython source code

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

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:
Episode transcripts:

--- Stay in touch with us ---
Subscribe to us on YouTube:
Follow Talk Python on Mastodon: talkpython
Follow Michael on Mastodon: mkennedy

Want to go deeper? Check out our courses

Talk Python's Mastodon Michael Kennedy's Mastodon