Issue 13423: Ranges cannot be meaningfully compared for equality or hashed

Issue13423

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