Next / Previous / Contents / Shipman's homepage

41. Elt.__exit__()

This is the cleanup method of the context manager protocol discussed in Section 3.3, “Context managers and the “with” construct”.

sox.py
# - - -   E l t . _ _ e x i t _ _

    def __exit__(self, exc_type, exc_value, traceback):
        '''Cleanup method for context manager protocol.
        '''
        self.end()