Differences of "!=" operator behavior in python3 and python2 [ bug? ]

Ian Kelly ian.g.kelly at gmail.com
Mon May 13 19:32:40 EDT 2013


On Mon, May 13, 2013 at 5:27 PM, Andrew Berg <bahamutzero8825 at gmail.com> wrote:
> On 2013.05.13 17:53, Mark Lawrence wrote:
>> I much prefer the alternative <> for != but some silly people insisted
>> that this be removed from Python3.
> It's not removed from Python 3, though:
>
> Python 3.3.1 (v3.3.1:d9893d13c628, Apr  6 2013, 20:30:21) [MSC v.1600 64 bit (AMD64)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> from __future__ import barry_as_FLUFL
>>>> 3 <> 2
> True

I'd like to see ≠ added as a synonym for !=, even if nobody uses it.



More information about the Python-list mailing list