[New-bugs-announce] [issue37999] No longer use implicit convertion to int with loss

Serhiy Storchaka report at bugs.python.org
Sun Sep 1 07:24:04 EDT 2019


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Use only the __index__() method for implicit conversion to iteger, and not __int__().

This converts deprecation warnings added in issue36048 into TypeError.

----------
components: Interpreter Core
messages: 350947
nosy: serhiy.storchaka
priority: normal
severity: normal
status: open
title: No longer use implicit convertion to int with loss
type: enhancement

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37999>
_______________________________________


More information about the New-bugs-announce mailing list