- that suggest a different solution; like declarations on local variables that say "call destructor when object goes out of scope"
You may be interested in PEP 310 (reliable acquisition/release pairs): http://www.python.org/peps/pep-0310.html
(Although if that idea gets adopted, it is unlikely to use the 'with' keyword - see PEP 3000 for the reason why)
Regards, Nick. -- http://mail.python.org/mailman/listinfo/python-list