Open Cerebus opened 6 years ago
I'm interested too; if there's an AND or an OR or an XOR, I'd like to be able to access its operands.
oh wait -- it's .xs
:
>>> import pyeda.inter
>>> a,b = map(pyeda.inter.exprvar,'ab')
>>> c = a&~b | b&~a
>>> c
Or(And(a, ~b), And(b, ~a))
>>> c.xs
(And(a, ~b), And(b, ~a))
I don't see anything in the docs, but I could be missing something.