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

Nathaniel Smith njs at pobox.com
Mon Apr 7 03:51:52 CEST 2014


On Mon, Apr 7, 2014 at 12:20 AM, Steven D'Aprano <steve at pearwood.info> wrote:
> On Sun, Apr 06, 2014 at 11:02:00PM +0100, Nathaniel Smith wrote:
>> On Sun, Mar 16, 2014 at 1:05 PM, Nick Coghlan <ncoghlan at gmail.com> wrote:
>> > Aye, but at the moment it makes sense to wait and see if there is even
>> > an argument to be had - Nathaniel may decide that even after reviewing
>> > the question seriously, he doesn't want to propose a right associative
>> > operator :)
>>
>> And indeed, that does seem to be the way things have worked out :-).
>>   http://mail.scipy.org/pipermail/numpy-discussion/2014-April/069834.html
>
> That's a shame in one way -- for anyone using operator overloading to
> define their own DSL, there's only ** if you want a right-associative
> operator to overload. Still, that's an extremely marginal, and
> hypothetical, use-case. Left-associative it is.
>
> Was that the last blocker for the PEP?

Pretty much. Just posted to python-dev:
   https://mail.python.org/pipermail/python-dev/2014-April/133791.html

-n

-- 
Nathaniel J. Smith
Postdoctoral researcher - Informatics - University of Edinburgh
http://vorpus.org


More information about the Python-ideas mailing list