Package common :: Module registry :: Class yes
[frames] | no frames]

Class yes

source code

Predicate --+
            |
           yes

Return the score given as parameter, with a default score of 0.5 so any
other selector take precedence.

Usually used for objects which can be selected whatever the context, or
also sometimes to add arbitrary points to a score.

Take care, `yes(0)` could be named 'no'...

Instance Methods
 
__init__(self, score=0.5) source code
 
__call__(self, *args, **kwargs) source code

Inherited from Predicate: __and__, __iand__, __invert__, __ior__, __or__, __rand__, __repr__, __ror__, __str__, func_name, search_selector

Method Details

__call__(self, *args, **kwargs)
(Call operator)

source code 
Overrides: Predicate.__call__