Table of Contents

Class: IConditional ./src/peak/events/interfaces.py

An event source that fires when (or resumes while) its value is true

Note that callbacks added to an IConditional with a true value should be called immediately.

Base Classes   
IReadableSource
Methods   
__and__
__cmp__
__hash__
__invert__
__or__
conjuncts
disjuncts
  __and__ 
__and__ ( cond )

Return the conjunction ("and") of this condition with cond

  __cmp__ 
__cmp__ ( other )

Conditionals must be comparable to each other

  __hash__ 
__hash__ ( other )

Conditionals must be hashable

  __invert__ 
__invert__ ()

Return the inverse ("not") of this condition

  __or__ 
__or__ ( expr )

Return the disjunction ("or") of this expression with expr

  conjuncts 
conjuncts ()

Return the sequence of conjuncts of this condition

For an "and" operation, this should return the and-ed conditions. For most other operations, this should return a one-element sequence containing the condition object itself.

  disjuncts 
disjuncts ()

Return the sequence of disjuncts of this condition

For an "or" operation, this should return the or-ed conditions. For most other operations, this should return a one-element sequence containing the condition object itself.


Table of Contents

This document was automatically generated on Mon Mar 25 01:11:05 2024 by HappyDoc version 2.1