Fault trees structure
jepler at inetnebr.com
Tue Dec 12 22:47:40 EST 2000
On Tue, 12 Dec 2000 13:18:58 -0500, Darrell Gallion
<darrell at dorb.com> wrote:
>Not sure that values will be constrained to boolean.
>When I tried this something odd happened.
>None isn't valid for and_ while it is for "and"
>>>> and_(1, 1)
>>>> and_(None, 1)
>Traceback (most recent call last):
> File "<stdin>", line 1, in ?
>TypeError: bad operand type(s) for &
>>>> None and 1
Well, operator.and_ corresponds to writing
x & y
what you're looking for is the function in operator which means
x and y
but that doesn't seem to exist. :(
More information about the Python-list