Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Hint: You can adjust the default video playback speed in your account settings.
Hint: You can set your subtitle preferences in your account settings.
Sorry! Looks like there’s an issue with video playback 🙁 This might be due to a temporary outage or because of a configuration issue with your browser. Please refer to our video player troubleshooting guide for assistance.

How Python Manages Memory (Summary)

Memory management is an integral part of working with computers. Python handles nearly all of it behind the scenes, for better or for worse. Python abstracts away a lot of the gritty details of working with computers. This gives you the power to work on a higher level to develop your code without the headache of worrying about how and where all those bytes are getting stored.

In this course, you learned:

  • What memory management is and why it’s important
  • How the default Python implementation, CPython, is written in the C programming language
  • How the data structures and algorithms work together in CPython’s memory management to handle your data

If you’re interested in more low-level tuturials, check out these courses and articles:

Download

Course Slides (.pdf)

2.2 MB

Varad Meru on Dec. 4, 2020

Thanks for this wonderful intro Austin. I had couple of questions - 1. Any place in GC and the workings are covered? 2. You mention that freepools and usedpools are stored as linked-lists. Where are the fullpools tracked?

thecocoa on Dec. 7, 2020

Thank you for this explanation.

Bo Stevens on Jan. 4, 2021

It was nice to learn about the garbage collector, and how Python is able to free up memory.

shangcode on Dec. 27, 2022

Got it, what a nice course.

Become a Member to join the conversation.