[Tutor] __and_ and and_
Mon, 18 Oct 1999 10:25:51 -0700 (Pacific Daylight Time)
> >Why doesn't the 'in-operator' '__and__' behave the same way as 'and_'?
> Because __and__ is the special method for overriding '&' (bitwise
> and), not 'and' (Boolean and). You didn't override the latter, so it
> does what it normally does -- if both arguments are true, it returns
> the first one.
> I don't see a way to override the 'and' or 'or' operators... you
> might be stuck using & and | instead. Anybody have a better idea?
There is no way to override and or or or not.