I am trying to understand the with statement in python. Everywhere I look it talks of opening and closing a file, and is meant to replace the try-finally block. Could someo
There are twelve examples of using with
in PEP343, including the file-open example: