is @ operator popular now?
Christian Heimes
christian at python.org
Sat Jul 15 08:49:06 EDT 2017
On 2017-07-15 14:05, Matt Wheeler wrote:
> On Sat, 15 Jul 2017, 12:35 oyster, <lepto.python at gmail.com> wrote:
>
>> as the title says. has @ been used in projects?
>>
>
> Strictly speaking, @ is not an operator.
> It delimits a decorator statement (in python statements and operations are
> not the same thing).
> However, to answer the question you actually asked, yes, all the time.
@ is an actual operator in Python. It was added in Python 3.5 as infix
matrix multiplication operator, e.g.
m3 = m1 @ m2
The operator is defined in PEP 465,
https://www.python.org/dev/peps/pep-0465/
Christian
More information about the Python-list
mailing list