Title: Ranges cannot be meaningfully compared for equality or hashed
Type: enhancement Stage: resolved
Components: Versions: Python 3.2
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 2011-11-18 09:42 by flox. 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.
Date User Action Args
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