Garbage Collection Method

Josiah Carlson jcarlson at nospam.uci.edu
Wed Feb 18 19:33:05 EST 2004


> Someone else know whats the way Python collect Garbage, by 
> unreferenced locations in memory, usings flags, maybe hybrid of two or 
> more methods, ... Can help me?

It uses a reference counting method, along with a cycle-detection 
algorithm.  More information about the cyclic garbage collector can be 
found in the documentation for the gc module in the standard library.

  - Josiah



More information about the Python-list mailing list