Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0c0dcaf2
Commit
0c0dcaf2
authored
Dec 16, 2009
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove type_compare, since type_richcompare does the same trick
parent
36902988
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
Objects/typeobject.c
Objects/typeobject.c
+1
-10
No files found.
Objects/typeobject.c
View file @
0c0dcaf2
...
...
@@ -610,15 +610,6 @@ static PyGetSetDef type_getsets[] = {
{
0
}
};
static
int
type_compare
(
PyObject
*
v
,
PyObject
*
w
)
{
/* This is called with type objects only. So we
can just compare the addresses. */
Py_uintptr_t
vv
=
(
Py_uintptr_t
)
v
;
Py_uintptr_t
ww
=
(
Py_uintptr_t
)
w
;
return
(
vv
<
ww
)
?
-
1
:
(
vv
>
ww
)
?
1
:
0
;
}
static
PyObject
*
type_richcompare
(
PyObject
*
v
,
PyObject
*
w
,
int
op
)
...
...
@@ -2745,7 +2736,7 @@ PyTypeObject PyType_Type = {
0
,
/* tp_print */
0
,
/* tp_getattr */
0
,
/* tp_setattr */
type_compare
,
/* tp_compare */
0
,
/* tp_compare */
(
reprfunc
)
type_repr
,
/* tp_repr */
0
,
/* tp_as_number */
0
,
/* tp_as_sequence */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment