This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Ranges cannot be meaningfully compared for equality or hashed
Type: enhancement Stage: resolved
Components: Versions: Python 3.2
process
Status: closed Resolution: out of date
Dependencies: Superseder: Implement comparison operators for range objects
View: 13201
Assigned To: Nosy List: flox, rob.anyone
Priority: normal Keywords:

Created on 2011-11-18 09:36 by rob.anyone, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg147838 - (view) Author: Chase Albert (rob.anyone) Date: 2011-11-18 09:36
My expectation was that range(2,5) == range(2,5), and that they should hash the same. This is not the case.
msg147839 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2011-11-18 09:42
this was implemented with ticket #13201.
It will be available in version 3.3.
History
Date User Action Args
2022-04-11 14:57:23adminsetgithub: 57632
2011-11-18 09:42:18floxsetstatus: open -> closed

superseder: Implement comparison operators for range objects
type: behavior -> enhancement

nosy: + flox
messages: + msg147839
resolution: out of date
stage: resolved
2011-11-18 09:36:58rob.anyonecreate