Talk Python To Me cover image

#22: CPython Internals and Learning Python with pythontutor.com

Talk Python To Me

00:00

How to Disassemble a Function in Python

The default with the DIS module is it just disassembles the top level of your program. And any functions will not be disassembled automatically. You have to actually grab the code of those functions and go in there and call this on that. So it is a little bit more tricky to do that. But if you run it through some, you know, you can run it throughSome pretty function or through disk and it actually shows you the bytecode of the function.

Play episode from 18:52
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app