def is_modified(kev):
 fflags = kev.fflags
 return ((fflags & select.KQ_NOTE_EXTEND) or (fflags & select.KQ_NOTE_WRITE))

def is_modified ( kev ) : fflags = kev . fflags return ( ( fflags & select . KQ_NOTE_EXTEND ) or ( fflags & select . KQ_NOTE_WRITE ) )
determines whether the given kevent represents modification .