Contribute Media
A thank you to everyone who makes this possible: Read More

C for Yourself: Exploring Python Internals at the REPL


Completely ignoring how Python is implemented can get you into some nasty bugs. Having a basic mental model will protect you, and it doesn’t require reading CPython source code! I’ll show you a fun way to dissect common Python types down to the level of bytes, using the ctypes library and the REPL.


Improve this page