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

Federico Mena Quintero federico at ximian.com
Tue Aug 8 12:42:22 EDT 2006


On Tue, 2006-08-08 at 12:29 -0400, 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:

Oooh, excellent.  And it looks trivial to implement.

  Federico




More information about the Devel mailing list