Changeset 218
- Timestamp:
- 06/14/06 02:00:18
- Files:
-
- trunk/logic.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/logic.py
r217 r218 231 231 232 232 def __init__(self, func=None, kwtypes=None): 233 """Expression(func, [kwtypes ]={}). func(obj, [**kw]) must return bool.233 """Expression(func, [kwtypes={}]). func(obj, [**kw]) must return bool. 234 234 235 235 func: a function, with one positional arg and optional keyword args, … … 265 265 ag.and_combine(other.func) 266 266 agfunc = ag.function() 267 return Expression(agfunc) 267 newkwtypes = self.kwtypes.copy() 268 newkwtypes.update(other.kwtypes) 269 return Expression(agfunc, newkwtypes) 268 270 __add__ = __and__ 269 271 … … 275 277 ag.or_combine(other.func) 276 278 agfunc = ag.function() 277 return Expression(agfunc) 279 newkwtypes = self.kwtypes.copy() 280 newkwtypes.update(other.kwtypes) 281 return Expression(agfunc, newkwtypes) 278 282 279 283 def bind_args(self, **kwargs):
