Closing files
Nick Coghlan
ncoghlan at email.com
Tue Nov 30 05:42:03 EST 2004
Daniel Dittmar wrote:
> - 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.
More information about the Python-list
mailing list