What\'s the equivalent of this in IronPython? Is it just a try-finally block?
using (var something = new ClassThatImp
the using block is in fact the following under the hood:
try { (do something unmanaged here) } finally { unmanagedObject.Dispose(); }
Hope this helps you understand the logic behind the using statement.