Package mrv :: Module util :: Class And
[hide private]
[frames] | no frames]

Class And

source code

object --+
         |
        And

For use with python's filter method, simulates logical AND Usage: filter(And(f1,f2,fn), sequence)
Instance Methods [hide private]
 
__call__(self, *args, **kwargs)
Called during filter function, return true if all functions return true
source code
 
__init__(self, *args)
args must contain the filter methods to be AND'ed To append functions after creation, simply access the 'functions' attribute directly as a list
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]
  functions

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
args must contain the filter methods to be AND'ed To append functions after creation, simply access the 'functions' attribute directly as a list
Overrides: object.__init__