[Python-checkins] python/dist/src/Lib repr.py,1.19,1.20
fdrake at users.sourceforge.net
fdrake at users.sourceforge.net
Thu Jul 1 16:28:50 EDT 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11534
Modified Files:
repr.py
Log Message:
Committing Tim's patch for SF bug #983585:
test_repr() fails with id() values that appear negative
Index: repr.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/repr.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** repr.py 22 May 2004 19:37:21 -0000 1.19
--- repr.py 1 Jul 2004 20:28:47 -0000 1.20
***************
*** 112,117 ****
# 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)
--- 112,116 ----
# 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)
More information about the Python-checkins
mailing list