9 Oct
2012
9 Oct
'12
3:48 a.m.
Steven D'Aprano wrote:
But it's just a name. __add__ doesn't necessarily perform addition, __sub__ doesn't necessarily perform subtraction, and __or__ doesn't necessarily have anything to do with either bitwise or boolean OR.
Maybe they should have been called __plus__, __dash__, __star__, __slash__ etc., then we wouldn't keep having this argument... -- Greg