appobject.py
changeset 2833 9aa47a3c0dfe
parent 2829 054a8805da52
child 2847 c2ee28f4d4b1
equal deleted inserted replaced
2832:7fb67c54ffb9 2833:9aa47a3c0dfe
    82 
    82 
    83     def __and__(self, other):
    83     def __and__(self, other):
    84         return AndSelector(self, other)
    84         return AndSelector(self, other)
    85     def __rand__(self, other):
    85     def __rand__(self, other):
    86         return AndSelector(other, self)
    86         return AndSelector(other, self)
       
    87     def __iand__(self, other):
       
    88         raise NotImplementedError('cant use inplace & (binary and)')
    87 
    89 
    88     def __or__(self, other):
    90     def __or__(self, other):
    89         return OrSelector(self, other)
    91         return OrSelector(self, other)
    90     def __ror__(self, other):
    92     def __ror__(self, other):
    91         return OrSelector(other, self)
    93         return OrSelector(other, self)
       
    94     def __ior__(self, other):
       
    95         raise NotImplementedError('cant use inplace | (binary or)')
    92 
    96 
    93     def __invert__(self):
    97     def __invert__(self):
    94         return NotSelector(self)
    98         return NotSelector(self)
    95 
    99 
    96     # XXX (function | function) or (function & function) not managed yet
   100     # XXX (function | function) or (function & function) not managed yet