def populate(self, other):
        """Like update, but clears the contents first."""
        self.clear()
        self.update(other)
        self.reset_all_changes()
def populate ( self , other ) : self . clear ( ) self . update ( other ) self . reset_all_changes ( )
Like update, but clears the contents first.