(self, exc_type, exc_val, exc_tb)
Decrements tracked fields occurrences count in shared state.

        If any field has no more occurrences in shared state, this field is
        being reset by tracker.
Decrements tracked fields occurrences count in shared state.
Decrements tracked fields occurrences count in shared state .
def __exit__(self, exc_type, exc_val, exc_tb):
        """
        Decrements tracked fields occurrences count in shared state.

        If any field has no more occurrences in shared state, this field is
        being reset by tracker.
        """
        reset_fields = []
        for f in self.fields:
            self.state[f] -= 1
            if self.state[f] == 0:
                reset_fields.append(f)
                del self.state[f]
        if reset_fields:
            self.tracker.set_saved_fields(fields=reset_fields)
def __exit__ ( self , exc_type , exc_val , exc_tb ) : reset_fields = [ ] for f in self . fields : self . state [ f ] -= 1 if self . state [ f ] == 0 : reset_fields . append ( f ) del self . state [ f ] if reset_fields : self . tracker . set_saved_fields ( fields = reset_fields )