src/py/utils.py
def makeNewString(self):
        "Apply the edits to the string and give a new expression"
        # reverse sort
        self.changes.sort(lambda x,y: -cmp(x[0][0],y[0][0]))
        s=self.str
        for r,newVal in self.changes:
            s=s[:r[0]]+self.formatNewValue(newVal)+s[r[1]:]
        return s
Apply the edits to the string and give a new expression
Apply the edits to the string and give a new expression
Apply the edits to the string and give a new expression
def makeNewString(self):
        self.changes.sort(lambda x,y: -cmp(x[0][0],y[0][0]))
        s=self.str
        for r,newVal in self.changes:
            s=s[:r[0]]+self.formatNewValue(newVal)+s[r[1]:]
        return s
def makeNewString ( self ) : self . changes . sort ( lambda x , y : - cmp ( x [ 0 ] [ 0 ] , y [ 0 ] [ 0 ] ) ) s = self . str for r , newVal in self . changes : s = s [ : r [ 0 ] ] + self . formatNewValue ( newVal ) + s [ r [ 1 ] : ] return s
Apply the edits to the string and give a new expression
Apply the edits to the string and give a new expression
"Apply the edits to the string and give a new expression" # reverse sort
self