← 输入框|bugs.python.org|刷新

➜

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
标题: Add SupportsIndex
类型: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.8
process
状态: closed Resolution: fixed
Dependencies: 后续:
分配给: 抄送列表: levkivskyi, pcd1193182
优先级: normal 关键字: patch

Created on 2019-05-20 16:09 by pcd1193182, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 13448 merged pcd1193182, 2019-05-20 17:06
Messages (2)
msg342925 - (view) Author: Paul Dagnelie (pcd1193182) * 日期: 2019-05-20 16:09
In order to allow hex() oct() and bin() to be used on user-defined classes, and to check if they can be used on a class at runtime, a SupportsIndex protocol would be useful to integrate.  A PR already exists in the backport repo for this issue: https://github.com/python/typing/pull/630
msg343196 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) 日期: 2019-05-22 14:23
New changeset 4c7a46eb3c009c85ddf2eb315d94d804745187d4 by Ivan Levkivskyi (Paul Dagnelie) in branch 'master':
bpo-36972: Add SupportsIndex (GH-13448)
https://github.com/python/cpython/commit/4c7a46eb3c009c85ddf2eb315d94d804745187d4
历史
日期 用户 动作 参数
2022-04-11 14:59:15admin修改github: 81153
2019-05-22 14:24:49levkivskyi修改状态: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-05-22 14:23:12levkivskyi修改抄送: + levkivskyi
消息: + msg343196
2019-05-20 17:06:20pcd1193182修改keywords: + patch
stage: patch review
pull_requests: + pull_request13358
2019-05-20 16:09:29pcd1193182创建