Turn off cycle detection at runtime?

Aahz aahz at pythoncraft.com
Thu Dec 26 20:35:50 EST 2002


In article <3E0BA72C.DBFAEB5 at fdsdsfadsfdfas.invalid>,
Jive Dadson  <dfasdsfdfs at fdsdsfadsfdfas.invalid> wrote:
>
>Is it possible to turn off garbage collection cycle detection at
>runtime?
>
>I saw some documentation for 2.0 that said you had to recompile the
>Python interpretter to turn it off.  That's not an option if you
>distribute pure Python programs intended to run on any supported
>platform.

gc.disable() or gc.set_threshold(0).
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"I disrespectfully agree."  --SJM



More information about the Python-list mailing list