[New-bugs-announce] [issue36972] Add SupportsIndex
Paul Dagnelie
report at bugs.python.org
Mon May 20 12:09:29 EDT 2019
New submission from Paul Dagnelie <pcd at delphix.com>:
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
----------
components: Library (Lib)
messages: 342925
nosy: pcd1193182
priority: normal
severity: normal
status: open
title: Add SupportsIndex
type: enhancement
versions: Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36972>
_______________________________________
More information about the New-bugs-announce
mailing list