gecong1973 797d376c69 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: I733f87fa5f9f69eac6f4e1eb930a9f299c0052e4
2016-10-17 08:51:06 +08:00
2016-10-17 08:51:06 +08:00
2015-05-05 19:39:52 +00:00
2014-06-18 23:12:10 -04:00
2015-11-16 23:17:37 +08:00
2015-09-17 16:42:28 +00:00
2016-07-11 20:25:58 -07:00

oslo.utils

Latest Version

Downloads

The oslo.utils library provides support for common utility type functions, such as encoding, exception handling, string manipulation, and time handling.

Description
OpenStack library utils
Readme 8 MiB
Languages
Python 100%