Thanks for pointing that out ( the "!" is a misstyped "|"), my classes of discrete math have warped my mind with a mix of various non-C-style operators notation, I never use bitwise operation and this is just a bad day for thinking about things.. However I figured out one thing, Python's logic notation is readable and complete but not compact. (which is fine for programming, and that's the aim, isn't it?)
Bjoern Schliessmann wrote: > Saizan wrote: > > > (However (not x) whould be as annoying as 1-x even if a little > > more readable (if you consider lispish parentheses readable): > > Input expression: (not (not x)&(not y)!(not (z|v))) > > Did you notice that you use bitwise AND and OR here? How about > > not (not x) and (not y) or (not (z or v)) > > (or what is "!" supposed to mean?) > > BTW, not's binding is stronger than and's (IIRC). So > > not (not x) and (not y) > > mutates to > > x and (not y) > > Regards, > > > Björn > > -- > BOFH excuse #392: > > It's union rules. There's nothing we can do about it. Sorry. -- http://mail.python.org/mailman/listinfo/python-list