Python nails one – What makes a good language change
Python 2.5 includes a with syntax (it’s nothing like javascript’s “with”) that helps work with objects that represent resources that need to be explicitly released. Loads of those around, from files to network connections to database sets and queries. Good. Basically, you write: with open(“x.txt”) as f: data = f.read() do something with data instead [...]