modified
modified ([doc[, value]])
This function returns 1 (True) if current document has been modified (otherwise, zero). The doc parameter specifies the identifier of the document tree to query. If omitted or 0, the current document is used. The value parameter specifies the new value for the “modified” state of doc. Note that the change to value takes place after determining the return value.