We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca05631 commit 434ab83Copy full SHA for 434ab83
domdf_python_tools/utils.py
@@ -280,3 +280,16 @@ def __contains__(self, key):
280
key = "_False"
281
282
return dict.__contains__(self, key)
283
+
284
285
+def cmp(x, y):
286
+ """
287
+ Implementation of cmp for Python 3
288
289
+ Compare the two objects x and y and return an integer according to the outcome.
290
+ The return value is negative if x < y, zero if x == y and strictly positive if x > y.
291
292
+ :rtype: int
293
294
295
+ return int((x > y) - (x < y))
0 commit comments