Deterministic destruction and RAII idioms in Python

Carl Friedrich Bolz cfbolz at gmx.de
Sun Feb 5 16:14:30 EST 2006


Paul Rubin wrote:
> plahey at alumni.caltech.edu writes:
> 
>>I looked at pep-0343, it looks interesting.  It is not what I really
>>want (deterministic destruction) 
> 
> 
> I think it's better.
> 
> 
>>As far as my comment about "mainstream" Python, I have always taken
>>CPython as "Python".  I guess this will have to change as Jython and
>>IronPython bring interesting things to the table, even if they do take
>>some things away in the process.
> 
> 
> Hopefully PyPy will become "mainstream".  How it handles GC, I'm not sure.

Right now PyPy gives (at compile-time) the choice between two GCs: naive 
reference counting and the conservative Boehm garbage collector 
(http://research.hp.com/personal/Hans_Boehm/gc/). Currently we are 
working on supporting other garbage collection strategies as well, like 
mark-and-sweep, a copying collector or some sort of sophisticated 
generational collector.

Cheers,

Carl Friedrich Bolz




More information about the Python-list mailing list