[Tutor] RE: __and__
Mon, 18 Oct 1999 18:56:29 +0100
"Joseph J. Strout" wrote:
> 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"?
Yes, but how can you modify the bitwise operator '&' ? As mentioned in
some of the emails before changeing '&' would have an effect on
'__and__' as well, wouldn't it?