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
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to