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
aa726ba9
Commit
aa726ba9
authored
Jan 04, 2001
by
Neil Schemenauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
__rcmp__ no longer gets called on instances. Remove the test for it.
parent
38f0223c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
Lib/test/test_compare.py
Lib/test/test_compare.py
+1
-12
No files found.
Lib/test/test_compare.py
View file @
aa726ba9
...
...
@@ -29,19 +29,8 @@ class Cmp:
def
__cmp__
(
self
,
other
):
return
cmp
(
self
.
arg
,
other
)
class
RCmp
:
def
__init__
(
self
,
arg
):
self
.
arg
=
arg
def
__repr__
(
self
):
return
'<RCmp %s>'
%
self
.
arg
def
__rcmp__
(
self
,
other
):
return
cmp
(
other
,
self
.
arg
)
candidates
=
[
2
,
2.0
,
2L
,
2
+
0j
,
[
1
],
(
3
,),
None
,
Empty
(),
Coerce
(
2
),
Cmp
(
2.0
),
RCmp
(
2L
)]
candidates
=
[
2
,
2.0
,
2L
,
2
+
0j
,
[
1
],
(
3
,),
None
,
Empty
(),
Coerce
(
2
),
Cmp
(
2.0
)]
def
test
():
for
a
in
candidates
:
...
...
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