[Python-ideas] Extending the usage of the @ decoration operator.

Steven D'Aprano steve at pearwood.info
Sat May 17 04:53:22 CEST 2014


On Sat, May 17, 2014 at 03:08:31AM +0100, MRAB wrote:
> On 2014-05-17 02:40, Chris B wrote:
> >Right now, one can use the @ symbol only for decorations and only bofore
> >function or class definition. ("A decorator is just a callable that
> >takes a function as an argument and returns a replacement function.").
[...]
> There is a proposal to use @ as an operator for matrix multiplication:
> 
> http://legacy.python.org/dev/peps/pep-0465/

It's not just a proposal, it's accepted and implemented in Python 3.5:

http://bugs.python.org/issue21176


So regardless of the merits of this proposal (if any), it isn't going to 
happen.


-- 
Steven


More information about the Python-ideas mailing list