[New-bugs-announce] [issue2603] Make range __eq__ work

Benjamin Peterson report at bugs.python.org
Wed Apr 9 23:28:08 CEST 2008


New submission from Benjamin Peterson <musiccomposition at gmail.com>:

This patch makes this work:
>>> range(4) == range(4)
True

This is in similar fashion to dict.keys
>>> {1:2}.keys() == {1:2}.keys()
True

Tests included.

----------
components: Interpreter Core
files: range_eq.patch
keywords: patch
messages: 65266
nosy: benjamin.peterson
severity: normal
status: open
title: Make range __eq__ work
type: feature request
versions: Python 3.0
Added file: http://bugs.python.org/file9993/range_eq.patch

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


More information about the New-bugs-announce mailing list