What's the equivalent of this in IronPython? Is it just a try-finally block?
using (var something = new ClassThatImplementsIDisposable()) { // stuff happens here }
IronPython supports using IDisposable with with statement, so you can write something like this:
IDisposable
with
with ClassThatImplementsIDisposable() as something: pass
1.4m articles
1.4m replys
5 comments
57.0k users