2 ms·
Yes, that is useful. That's why Python has with statements, for example. C++ RAII or Java try-with-resources can be used similarly. http://www.python.org/dev/p
by sanxiyn 15y ago
Yes, that is useful. That's why Python has with statements, for example. C++ RAII or Java try-with-resources can be used similarly.
http://www.python.org/dev/peps/pep-0343/ http://www.python.org/dev/peps/pep-0343/