[issue2610] string representation of range

Brad Miller report at bugs.python.org
Fri Apr 11 16:45:49 CEST 2008


Brad Miller <bonelake at gmail.com> added the comment:

The patch does not change the behavior of repr.  It modifies the 
behavior of str.

I agree that learning list/tuple sooner is better, but students who have 
never written a line of code before can only absorb so much information, 
this little patch allows them to print(range(100,0,-1)) and get a much 
better intuition about what is happening.

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2610>
__________________________________


More information about the Python-bugs-list mailing list