A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-April/133815.html below:

[Python-Dev] PEP 465: A dedicated infix operator for matrix multiplication

[Python-Dev] PEP 465: A dedicated infix operator for matrix multiplicationBarry 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4