[Python-checkins] python/dist/src/Lib repr.py,1.17,1.18 (original) (raw)

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Fri May 21 19:01:21 EDT 2004


Update of /cvsroot/python/python/dist/src/Lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8307

Modified Files: repr.py Log Message:

Index: repr.py

RCS file: /cvsroot/python/python/dist/src/Lib/repr.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** repr.py 21 May 2004 10:00:14 -0000 1.17 --- repr.py 21 May 2004 23:01:17 -0000 1.18


*** 16,19 **** --- 16,20 ---- self.maxset = 6 self.maxfrozenset = 6


*** 38,42 **** return s

! def _repr_iterable(self, x, level, left, right, maxiter, final=''): n = len(x) if level <= 0 and n: --- 39,43 ---- return s

! def _repr_iterable(self, x, level, left, right, maxiter, trail=''): n = len(x) if level <= 0 and n:


*** 48,52 **** if n > maxiter: pieces.append('...') s = ', '.join(pieces) ! if n == 1 and final: s += final return '%s%s%s' % (left, s, right)

--- 49,53 ---- if n > maxiter: pieces.append('...') s = ', '.join(pieces) ! if n == 1 and trail: right = trail + right return '%s%s%s' % (left, s, right)


*** 68,71 **** --- 69,75 ---- self.maxfrozenset)



More information about the Python-checkins mailing list