Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Recompute condition state for new C{object}.  This method invokes stored
C{predicate} (as passed to C{L{__init__}}) to calculate new state.


@type  object:     C{object}

@rtype:            C{bool}
@returns:          Whether the state has changed as a result of recomputing.

@raises exception: whatever C{predicate} raises, if anything.

src/p/y/py-notify-0.3.1/test/condition.py   py-notify(Download)
        predicate.store (test.simple_handler)
 
        predicate.update (10)
 
        test.assert_results (False, True)
        predicate.store (test.simple_handler)
 
        predicate.update (False)
 
        test.assert_results (False)
        predicate.store (test.simple_handler)
 
        predicate.update (10)
        predicate.update (20)
        predicate.update (-5)