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
标题: Ranges cannot be meaningfully compared for equality or hashed
类型: enhancement Stage: resolved
Components: Versions: Python 3.2
process
状态: closed Resolution: out of date
Dependencies: 后续: Implement comparison operators for range objects
View: 13201
分配给: 抄送列表: flox, rob.anyone
优先级: normal 关键字:

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) 日期: 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) 日期: 2011-11-18 09:42
this was implemented with ticket #13201.
It will be available in version 3.3.
历史
日期 用户 动作 参数
2022-04-11 14:57:23admin修改github: 57632
2011-11-18 09:42:18flox修改状态: open -> closed

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

抄送: + flox
消息: + msg147839
resolution: out of date
stage: resolved
2011-11-18 09:36:58rob.anyone创建