Python antipattern: Close in finallyPublished bygbenson.neton •1 min readWhy is the second better? Using contextlib.closing() ties closing the item to its creation.AntipatternsPythonLearn moreShareLegalReport