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

-- 
Ivan Krstic <[EMAIL PROTECTED]> | GPG: 0x147C722D
_______________________________________________
Sugar mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/sugar

Reply via email to