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

Antoine Pitrou solipsis at pitrou.net
Sat Mar 15 15:31:54 CET 2014


On Sun, 16 Mar 2014 01:04:51 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> 
> That sounds to me that you are suggesting that every single 
> implementation of a matrix type that supports matrix multiplication 

No, only implementations that are actually concerned with that
particular optimization.

For an analogy, bytes objects don't implement cheap slicing: if you
want that, you need to use a different type (memoryview).

Regards

Antoine.




More information about the Python-ideas mailing list