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

M.-A. Lemburg mal at egenix.com
Fri Mar 14 14:20:33 CET 2014


On 14.03.2014 12:25, Robert Kern wrote:
> On 2014-03-14 10:16, M.-A. Lemburg wrote:
> 
>> I have some questions:
>>
>> 1. Since in math, the operator is usually spelt "·" (the center dot,
>>     or "." but that's already reserved for methods and attributes in
>>     Python), why not try to use that instead of "@" (which in Python
>>     already identifies decorators) ?
> 
> I think the current feeling of the Python core team is against including non-ASCII characters in the
> language's keywords or operators. Even if that were not so, I would still recommend against it
> because it would be quite difficult to type. I don't know off-hand the key combination to do it on
> my native system, and it would change from system to system.

That's a fair argument. How about using the degree symbol instead: "°" ?

(A ° B).T == B.T ° A.T

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Mar 14 2014)
>>> Python Projects, Consulting and Support ...   http://www.egenix.com/
>>> mxODBC.Zope/Plone.Database.Adapter ...       http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2014-03-29: PythonCamp 2014, Cologne, Germany ...          15 days to go
2014-04-09: PyCon 2014, Montreal, Canada ...               26 days to go

::::: Try our mxODBC.Connect Python Database Interface for free ! ::::::

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/


More information about the Python-ideas mailing list