(self, *states)
return merged, merging_occurred
Merge two given states, and return a new one.

        :param states:  All states to merge.
        :returns: The merged state, and whether a merging has occurred
Merge two given states, and return a new one.
Merge two given states and return a new one .
def _merge_states(self, *states):
        """
        Merge two given states, and return a new one.

        :param states:  All states to merge.
        :returns: The merged state, and whether a merging has occurred
        """

        # print old_state.dbg_print_stack()
        # print new_state.dbg_print_stack()

        merged = states[0]
        merging_occurred = False
        for state in states[1:]:
            merged, _, merging_occurred_ = merged.merge(state, plugin_whitelist=self._mergeable_plugins)
            merging_occurred |= merging_occurred

        # print "Merged: "
        # print merged_state.dbg_print_stack()

        return merged, merging_occurred
def _merge_states ( self , * states ) : # print old_state.dbg_print_stack() # print new_state.dbg_print_stack() merged = states [ 0 ] merging_occurred = False for state in states [ 1 : ] : merged , _ , merging_occurred_ = merged . merge ( state , plugin_whitelist = self . _mergeable_plugins ) merging_occurred |= merging_occurred # print "Merged: " # print merged_state.dbg_print_stack() return merged , merging_occurred