[Python-ideas] [RFC] draft PEP: Dedicated infix operators for matrix multiplication and matrix power

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 15 00:16:25 CET 2014


Antoine Pitrou wrote:
> Or simply implement __invert__, so you can write it "~ A".
> (__invert__ doesn't really invert a number, it takes the bitwise
> complement :-))

But that's already taken to mean elementwise bitwise
complement.

-- 
Greg


More information about the Python-ideas mailing list