This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author malin
Recipients malin
Date 2021-01-25.13:14:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611580476.8.0.756071230609.issue43023@roundup.psfhosted.org>
In-reply-to
Content
Above code already cover this check:

    if (Py_SIZE(v) == newsize) {
        /* return early if newsize equals to v->ob_size */
        return 0;
    }
    if (Py_SIZE(v) == 0) {
-       if (newsize == 0) {
-           return 0;
-       }
        *pv = _PyBytes_FromSize(newsize, 0);
        Py_DECREF(v);
        return (*pv == NULL) ? -1 : 0;
    }
History
Date User Action Args
2021-01-25 13:14:36malinsetrecipients: + malin
2021-01-25 13:14:36malinsetmessageid: <1611580476.8.0.756071230609.issue43023@roundup.psfhosted.org>
2021-01-25 13:14:36malinlinkissue43023 messages
2021-01-25 13:14:36malincreate