[issue2610] string representation of range

Martin v. Löwis report at bugs.python.org
Fri Apr 11 23:33:25 CEST 2008


Martin v. Löwis <martin at v.loewis.de> added the comment:

> I don't think <0, 1, ..., 9> is much clearer than range(0, 10).  The 
> only problem students may have is that 10 not in range(0, 10), but this 
> can be learned very quickly.  The <..> repr breaks x == eval(repr(x)) 
> invariant which is actually important in some of my code.

I think you misunderstand the patch. It doesn't affect repr() at all.

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


More information about the Python-bugs-list mailing list