[Python-Dev] PEP 465: A dedicated infix operator for matrix multiplication
Barry Warsaw
barry at python.org
Mon Apr 7 23:58:44 CEST 2014
On Apr 07, 2014, at 05:47 PM, Alexander Belopolsky wrote:
>Python used to have an alias <> for != and I for one miss <> in 3.x. I
>don't think TOOWTDI should be the last word in this debate.
PEP 401 to the rescue:
% python3
Python 3.4.0 (default, Mar 22 2014, 22:51:25)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from __future__ import barry_as_FLUFL
>>> 'flufl' <> 'bdfl'
True
>>> 'flufl' != 'bdfl'
File "<stdin>", line 1
'flufl' != 'bdfl'
^
SyntaxError: invalid syntax
(And no, I am not recommending you actually *use* that in live code. :)
flufl-ly y'rs,
-Barry
More information about the Python-Dev
mailing list