[Python-checkins] CVS: python/nondist/peps pep-0200.txt,1.15,1.16
Fred L. Drake
python-dev@python.org
Fri, 18 Aug 2000 13:26:50 -0700
Update of /cvsroot/python/python/nondist/peps
In directory slayer.i.sourceforge.net:/tmp/cvs-serv5669
Modified Files:
pep-0200.txt
Log Message:
Clarify the what the xrange representation issue was.
Index: pep-0200.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0200.txt,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** pep-0200.txt 2000/08/18 04:25:33 1.15
--- pep-0200.txt 2000/08/18 20:26:47 1.16
***************
*** 158,162 ****
* Fix xrange printing behavior - Fred Drake
! [although I'm not sure what this one was talking about - tim]
--- 158,167 ----
* Fix xrange printing behavior - Fred Drake
! Remove the tp_print handler for the xrange type; it produced a
! list display instead of 'xrange(...)'. The new code produces a
! minimal call to xrange(), enclosed in (... * N) when N != 1.
! This makes the repr() more human readable while making it do
! what reprs are advertised as doing. It also makes the xrange
! objects obvious when working in the interactive interpreter.