Index: Lib/repr.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/repr.py,v retrieving revision 1.19 diff -c -r1.19 repr.py *** Lib/repr.py 22 May 2004 19:37:21 -0000 1.19 --- Lib/repr.py 1 Jul 2004 19:58:08 -0000 *************** *** 111,118 **** # Bugs in x.__repr__() can cause arbitrary # exceptions -- then make up something except: ! return '<' + x.__class__.__name__ + ' instance at ' + \ ! hex(id(x))[2:] + '>' if len(s) > self.maxstring: i = max(0, (self.maxstring-3)//2) j = max(0, self.maxstring-3-i) --- 111,117 ---- # Bugs in x.__repr__() can cause arbitrary # exceptions -- then make up something except: ! return '<%s instance at %x>' % (x.__class__.__name__, id(x)) if len(s) > self.maxstring: i = max(0, (self.maxstring-3)//2) j = max(0, self.maxstring-3-i)