[OLPC-devel] Re: [sugar] Pygtk and garbage collecting

Christopher Blizzard blizzard at redhat.com
Tue Aug 8 20:05:50 EDT 2006


Ivan Krstic wrote:
> Federico Mena Quintero wrote:
>> This is pretty useful for managed objects which maintain non-managed
>> data (file descriptors, memory buffers, database connections, etc.).
>>
>> Does Python let you do something like this?
> 
> Yes, using the 'with' statement that's new in Python 2.5, which we'll
> have on the laptop:
> 
>  http://docs.python.org/dev/whatsnew/pep-343.html
> 

I don't think we're going to move to python 2.5 on the laptop.  2.4 is 
what's well integrated at the moment and I don't think we want to try to 
keep more than one python around.

--Chris



More information about the Devel mailing list