Garbage collector strategy

Stephen Kellett snail at
Wed Dec 22 11:55:10 CET 2004

In message <87brcmk76f.fsf at>, Martin Drautzburg 
<martin.drautzburg at> writes
>Just for curiosity: does python use a mark-and-sweep garbage collector
>or simple reference counting? In the latter case it would not garbage
>collect circular references, right ?

gcmodule.c in the python sources shows the implementation, plus the code 
for this is well documented.

Stephen Kellett
Object Media Limited
RSI Information:

More information about the Python-list mailing list