[IMP] expression: added a small comment.

bzr revid: vmt@openerp.com-20110726172853-4yoxl1bdnd1sopvf
This commit is contained in:
Vo Minh Thu 2011-07-26 19:28:53 +02:00
parent 1fc22273aa
commit 7315181412
1 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,8 @@ def normalize(domain):
def combine(operator, unit, zero, domains):
"""Returns a new domain expression where all domain components from ``domains``
have been added together using the binary operator ``operator``.
have been added together using the binary operator ``operator``. The given
domains must be normalized.
:param unit: the identity element of the domains "set" with regard to the operation
performed by ``operator``, i.e the domain component ``i`` which, when
@ -72,6 +73,7 @@ def combine(operator, unit, zero, domains):
combined with any domain ``x`` via ``operator``, yields ``z``.
E.g. [(1,'=',1)] is the typical zero for OR_OPERATOR: as soon as
you see it in a domain component the resulting domain is the zero.
:param domains: a list of normalized domains.
"""
result = []
count = 0