[issue38005] Coercing strings and non-integer numbers to interpreter ID and channel ID

Serhiy Storchaka report at bugs.python.org
Sun Sep 8 07:10:08 EDT 2019


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There is more serious issue: InterpreterID and ChannelID are declared as int subclasses, but actually they have incompatible structure, so using them as int causes a crash. For example, the following code is crashed:

    float(int(id)) == id

----------

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


More information about the Python-bugs-list mailing list