Learn Before
Concept
Garbage Collection
Some programming languages require that the programmer manually deallocate memory. However, Python does this automatically through the use of a garbage collector. In short, a garbage collector will deallocate memory for any objects that are deemed to be no longer necessary for the program. Python implements two strategies for garbage collection:
- Reference Counting
- Generational Garbage Collection
0
1
Updated 2021-06-14
Tags
Python Programming Language
Data Science