Talk Python To Me cover image

#25: Effective Python

Talk Python To Me

How to Debug Memory Allocations and Leaks in Python

2min Snip

00:00
Play full episode
If you just take a list and print it, you'll get that representation for all the items it contains. It basically is evaluates back to the Python statement that would have taken to create the same list. So it's a really nice way to do kind of interactive debugging session with your own code. That's cool. And the final collaboration thing that I actually hadn't heard of was you can understand memory allocations and leaks with something called trace malloc. Yeah. Absolutely.

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode