operator module functions

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Oct 8 23:37:24 CEST 2014


Chris Angelico wrote:

>>>>operator.add is operator.__add__
> True

That doesn't always seem to have been the case, however.
In Python 2.7 and 3.3, I get

 >>> operator.add is operator.__add__
False

-- 
Greg



More information about the Python-list mailing list