Hi readers, this blog post would try to explain the implementations of the GC module.

_Garbage Collector(GC) _{wiki__definition}:

Garbage collector (GC) is a form of automatic memory management. The garbage collector, or just collector, attempts to reclaim garbage, or memory occupied by objects that are no longer in use by the program.

The basic idea of GC, is to free the memory block of unwanted objects in python.

Following are the Prerequisites to understand the GC module implementation in CPython. They are,

  • PyObj(Python core obj)
  • Memory reference
  • Reference counter

#programming #python #memory-management #garbage-collection #garbage collector(gc) in python #garbage

Garbage Collector(GC) in Python (Part-I)
1.50 GEEK