Learn Before
Concept

Reference Counting

Each object in Python also comes with its own data value called a reference count. An object's reference count is increased each time it is referenced by other objects and decreased when a reference is removed. When an object's reference count reaches zero, it is deallocated from memory. Reference counting by itself is a somewhat limited and primitive way to manage memory, and doesn't catch all objects in need of deallocation. This is why it is paired with another garbage collection strategy.

0

1

Updated 2021-06-14

Contributors are:

Who are from:

Tags

Python Programming Language

Data Science