yuyafei e6e2ef4d69 Add __ne__ built-in function
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining
__eq__(), one should also define __ne__() so that the operators
will behave as expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__

Change-Id: I40878c38fd27933d73225ba49bd69b425f13dc6a
2016-07-04 17:07:41 +08:00
..
2016-06-03 14:25:39 +08:00
2016-06-13 15:21:47 +00:00
2016-06-02 07:25:40 +00:00
2016-07-04 17:07:41 +08:00
2016-07-04 17:07:41 +08:00
2016-06-14 09:56:10 +08:00
2016-07-04 17:07:41 +08:00
2016-01-05 11:22:40 +02:00
2015-08-25 04:46:18 -07:00
2016-06-14 09:56:10 +08:00
2016-05-16 10:52:01 -04:00
2016-03-01 03:20:04 +00:00