| 271 | return Not(boolexpr) |
| 272 | |
| 273 | class Combinative(object): |
| 274 | |
| 275 | def combine(cls, *combinatives): |
| 276 | args = [] |
| 277 | for c in combinatives: |
| 278 | if type(c) is cls: |
| 279 | args.extend([e for e in c.elements if e]) |
| 280 | else: |
| 281 | args.append(c) |
| 282 | return cls(*args) |
| 283 | combine = classmethod(combine) |
| 284 | |
| 285 | class InfixedExpression(Infixed, Expression): |
| 286 | def __init__(self, infix, *expressions): |
nothing calls this directly
no test coverage detected