[Tutor] RE: __and__

Arne Mueller a.mueller@icrf.icnet.uk
Mon, 18 Oct 1999 18:32:24 +0100


Hi All,

the manual is a bit confusing, in section 3.5 ( operator -- Standard
operators as functions.) it says:

and_ (a, b) 
__and__ (in operator) (a, b) 
    Return the bitwise and of a and b. 

the same as 

add (a, 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__ ... :-(

	Arne



-- 
Arne Mueller
Biomolecular Modelling Laboratory
Imperial Cancer Research Fund
44 Lincoln's Inn Fields
London WC2A 3PX, U.K.
phone : +44-(0)171 2693405      | fax :+44-(0)171-269-3534
email : a.mueller@icrf.icnet.uk | http://www.icnet.uk/bmm/