3 ms·
Really, using a context manager and the `with` statement is usually the better way to go: http://effbot.org/zone/python-with-statement.htm http://effbot.org/zon
by acjohnson55 13y ago
Really, using a context manager and the `with` statement is usually the better way to go: http://effbot.org/zone/python-with-statement.htm http://effbot.org/zone/python-with-statement.htm
- badman_ting 13y agoRight, and since C# was brought up, a "using" statement is the equivalent way of making sure the resource is disposed of properly when it falls out of scope.