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 petr.viktorin
Recipients Mark.Shannon, asvetlov, lukasz.langa, petr.viktorin, scoder, serhiy.storchaka, v2m, yselivanov
Date 2021-07-23.15:56:58
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627055818.47.0.257235536178.issue41756@roundup.psfhosted.org>
In-reply-to
Content
Hello!
This change added an enum to the stable ABI:
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } PySendResult;

Adding new values to enums might break the stable ABI in some (admittedly rare) cases; so usually it's better to avoid enums and stick with int and #ifdef'd values.
This particular one looks like it won't be extended and won't cause problems, but still, switching to int would make stable ABI easier to work with.
Is anyone against switching to int?

See pbo-44727 for details.
History
Date User Action Args
2021-07-23 15:56:58petr.viktorinsetrecipients: + petr.viktorin, scoder, asvetlov, lukasz.langa, Mark.Shannon, serhiy.storchaka, yselivanov, v2m
2021-07-23 15:56:58petr.viktorinsetmessageid: <1627055818.47.0.257235536178.issue41756@roundup.psfhosted.org>
2021-07-23 15:56:58petr.viktorinlinkissue41756 messages
2021-07-23 15:56:58petr.viktorincreate