[issue36972] Add SupportsIndex
New submission from Paul Dagnelie : 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
[issue36972] Add SupportsIndex
Change by Paul Dagnelie : -- keywords: +patch pull_requests: +13358 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue36972> ___ ___ Py