[issue2603] Make range __eq__ work

Guido van Rossum report at bugs.python.org
Sat Apr 26 01:10:38 CEST 2008


Guido van Rossum <guido at python.org> added the comment:

On Fri, Apr 25, 2008 at 3:41 PM, Benjamin Peterson
<report at bugs.python.org> wrote:
>  If it makes any difference, the attributes aren't even available through Python.

But they are deducible via the str() or repr(). And IMO they *should*
be available.

I think I'd be okay with normalization on creation, so that range(0,
5, 2) returns range(0, 6, 2). Hm, but isn't that odd? Why not the
other way around?

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


More information about the Python-bugs-list mailing list