Learn Python with Talk Python's Python courses

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: github.com
RealPython article: realpython.com
Memory management in Python article: rushter.com
Dismissing Python Garbage Collection at Instagram: instagram-engineering.com

Prior episodes with Anthony

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

Stay in touch with us
Subscribe on YouTube (for live streams): youtube.com
Follow Talk Python on Twitter: @talkpython
Follow Michael on Twitter: @mkennedy

Want to go deeper? Check out our courses

Anthony Shaw
Anthony Shaw
Episode sponsored by
Ads served ethically
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.