We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b145dfa commit 1e01db9Copy full SHA for 1e01db9
pytensor/utils.py
@@ -16,7 +16,6 @@
16
17
18
__all__ = [
19
- "cmp",
20
"get_unbound_function",
21
"maybe_add_to_os_environ_pathlist",
22
"DefaultOrderedDict",
@@ -106,22 +105,6 @@ def exc_message(e):
106
105
return msg
107
108
109
-def cmp(x, y):
110
- """Return -1 if x < y, 0 if x == y, 1 if x > y."""
111
- return (x > y) - (x < y)
112
-
113
114
-def key_to_cmp(key):
115
- """
116
- comparator function based on "key" function
117
118
119
- def key_cmp(a, b):
120
- return cmp(key(a), key(b))
121
122
- return key_cmp
123
124
125
def get_unbound_function(unbound):
126
# Op.make_thunk isn't bound, so don't have a __func__ attr.
127
# But bound method, have a __func__ method that point to the
0 commit comments