scipy/scipy — pull request #491 by timleslie (2013-03-30 01:04:50+00:00)
Title: Add support for the context manager protocol to netcdf_file objects

This PR implements the context manager protocol (__enter__, __exit__) for the netcdf_file class. This lets netcdf_file objects be used with the "with" statement in the same way that regular files are.