Update of /cvsroot/python/python/dist/src/Lib/test In directory usw-pr-cvs1:/tmp/cvs-serv21553/Lib/test Modified Files: test_compare.py Log Message: __rcmp__ no longer gets called on instances. Remove the test for it. Index: test_compare.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/test/test_compare.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** test_compare.py 2001/01/03 02:13:26 1.2 --- test_compare.py 2001/01/04 01:34:52 1.3 *************** *** 30,46 **** 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)] def test(): --- 30,35 ---- return cmp(self.arg, other) ! candidates = [2, 2.0, 2L, 2+0j, [1], (3,), None, Empty(), Coerce(2), Cmp(2.0)] def test():
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4