Title: Add SupportsIndex
Type: enhancement Stage: resolved
Components: Library (Lib) Versions: Python 3.8
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: levkivskyi, pcd1193182
Priority: normal Keywords: patch

Created on 2019-05-20 16:09 by pcd1193182, last changed 2019-05-22 14:24 by levkivskyi. 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) * Date: 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:
msg343196 - (view) Author: Ivan Levkivskyi (levkivskyi) * (Python committer) Date: 2019-05-22 14:23
New changeset 4c7a46eb3c009c85ddf2eb315d94d804745187d4 by Ivan Levkivskyi (Paul Dagnelie) in branch 'master':
bpo-36972: Add SupportsIndex (GH-13448)
Date User Action Args
2019-05-22 14:24:49levkivskyisetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2019-05-22 14:23:12levkivskyisetnosy: + levkivskyi
messages: + msg343196
2019-05-20 17:06:20pcd1193182setkeywords: + patch
stage: patch review
pull_requests: + pull_request13358
2019-05-20 16:09:29pcd1193182create