

Return ''. If you are interested in the details, here is a generic example in order to explain how ExitStack operates: from contextlib import ExitStack

Open the files you want to have in the session. # the with statement, even if attempts to open files later I edit several CSS files at once, how can I open them all at the same time You can make use of the Notepad++ Session Manager. # All opened files will automatically be closed at the end of In fact, the canonical use-case that is mentioned in the documentation is managing a dynamic number of files. It can manage a dynamic number of context-aware objects, which means that it will prove especially useful if you don't know how many files you are going to handle. Since Python 3.3, you can use the class ExitStack from the contextlib module to safely
