What is the difference with inv and invert?
>>> import operator
>>> operator.inv is operator.invert
False
>>> operator.__inv__ is operator.__invert__
False
I gather that __invert__ is the hook for the unary ops like ~1 or (1).__invert__().
But what is the other one __inv__ corresponding to? Or if it's same, why we have another name and a different function added for doing same thing?