[New-bugs-announce] [issue39262] Unused error message in _sharedexception_bind

Alex Henrie report at bugs.python.org
Wed Jan 8 13:22:29 EST 2020


New submission from Alex Henrie <alexhenrie24 at gmail.com>:

The function _sharedexception_bind currently has the following bit of code in two places:

    if (PyErr_ExceptionMatches(PyExc_MemoryError)) {
        failure = "out of memory copying exception type name";
    }
    failure = "unable to encode and copy exception type name";

The "out of memory" message will never appear because it is immediately overwritten with a more generic message.

----------
messages: 359620
nosy: alex.henrie
priority: normal
severity: normal
status: open
title: Unused error message in _sharedexception_bind
type: behavior
versions: Python 3.9

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


More information about the New-bugs-announce mailing list