[Python-ideas] Re: Double "at" operator for matmul exponentiation

2023-07-05 Thread Dom Grigonis
> On 5 Jul 2023, at 21:07, Chris Angelico wrote: > > On Thu, 6 Jul 2023 at 04:02, Dom Grigonis wrote: >> What I would alternatively propose is to introduce a couple of (meaningless >> operators), so that library developers can make use of them as they wish. >> What characters aren't used? “$

[Python-ideas] Re: Double "at" operator for matmul exponentiation

2023-07-05 Thread Chris Angelico
On Thu, 6 Jul 2023 at 04:02, Dom Grigonis wrote: > What I would alternatively propose is to introduce a couple of (meaningless > operators), so that library developers can make use of them as they wish. > What characters aren't used? “$, ?, `” (or are they?). > What should their precedences be?

[Python-ideas] Re: Double "at" operator for matmul exponentiation

2023-07-05 Thread Dom Grigonis
From perspective of calculation time of matrix multiplications Infix operators is a reasonable solution to define a subset of your own. https://doc.sagemath.org/html/en/reference/misc/sage/misc/decorators.html#sage.misc.decorators.infix_operator The problem is that if one implements it, there ha

[Python-ideas] Re: Double "at" operator for matmul exponentiation

2023-07-05 Thread Joren Hammudoglu
None of the other repeated infix operators follow the same "repeated application" relation that * and ** have, i.e. // isn't repeated division, << and >> aren't repeated inequality comparisons (whathever that may be), and == isn't repeated assignment. __

[Python-ideas] Re: Double "at" operator for matmul exponentiation

2023-07-05 Thread Oscar Benjamin
On Wed, 5 Jul 2023 at 11:18, wrote: > > > Python has the "star" ("*") operator for multiplication. In the context of > collections it is supposed to mean element-wise multiplication. Its > associated operator is __mul__. It also has the double star ("**") operator > for exponentiation, which is

[Python-ideas] Re: Double "at" operator for matmul exponentiation

2023-07-05 Thread David Mertz, Ph.D.
Every Python idea that has ever been proposed "for the sake of completeness" has been rejected... at least in the 24 years I've been following such closely. Do you have an actual compelling use case? An abstract symmetry isn't going to do it. On Wed, Jul 5, 2023 at 6:17 AM wrote: > > Python has