[Python-ideas] PEP 428 - object-oriented filesystem paths
Greg Ewing
greg.ewing at canterbury.ac.nz
Tue Oct 9 00:18:54 CEST 2012
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
More information about the Python-ideas
mailing list