Overloading the tilde operator?

greg greg at cosc.canterbury.ac.nz
Fri Feb 2 18:42:33 EST 2007


James Stroud wrote:

> You haven't addressed why the limitation isn't arbitrary.

It's not arbitrary because there is a built-in meaning
for infix minus, but not for infix tilde.

Python doesn't go out of its way to provide operators
which aren't used by at least one built-in type.

--
Greg



More information about the Python-list mailing list