A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-checkins/2001-January/014733.html below:

[Python-checkins] CVS: python/dist/src/Lib/test test_compare.py,1.2,1.3

[Python-checkins] CVS: python/dist/src/Lib/test test_compare.py,1.2,1.3Neil Schemenauer python-dev@python.org
Wed, 03 Jan 2001 17:34:54 -0800
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