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://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
<https://bugs.python.org/issue36972>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com