[Tutor] RE: __and__
Joseph J. Strout
joe@strout.net
Mon, 18 Oct 1999 10:55:04 -0700
At 6:32 PM +0100 10/18/99, Arne Mueller wrote:
>__and__ (in operator) (a, b)
> Return the bitwise and of a and b.
>__add__ (in operator) (a, b)
> Return a + b, for a and b numbers.
>
>So I thought __and__ it'd work the same way as __add__ ... :-(
It does. Perhaps you don't understand what "bitwise and" means? And
that the operator for "bitwise and" is "&" rather than "and"?
Cheers,
-- Joe
,------------------------------------------------------------------.
| Joseph J. Strout Biocomputing -- The Salk Institute |
| joe@strout.net http://www.strout.net |
`------------------------------------------------------------------'