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 petr.viktorin
Date 2021-07-23.15:49:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627055383.07.0.643297795133.issue44727@roundup.psfhosted.org>
In-reply-to
Content
As far as I can see, the current enums in the stable ABI are:

PySendResult from object.h, return value of PyObject_Send:
    typedef enum {
        PYGEN_RETURN = 0,
        PYGEN_ERROR = -1,
        PYGEN_NEXT = 1,
    } PySendResult;
(This is unlikely to change in the future, but added in 3.10, maybe it can be converted to int.)

PyLockStatus from pythread.h, return value of PyThread_acquire_lock_timed:
    typedef enum PyLockStatus {
        PY_LOCK_FAILURE = 0,
        PY_LOCK_ACQUIRED = 1,
        PY_LOCK_INTR
    } PyLockStatus;
(This has been there for a long time so shouldn't be changed now.)

PyGILState_STATE from pystate.h, for PyGILState_Ensure/PyGILState_Release:
    typedef
        enum {PyGILState_LOCKED, PyGILState_UNLOCKED}
        PyGILState_STATE;
(Also is unlikely to change in the future.)
History
Date User Action Args
2021-07-23 15:49:43petr.viktorinsetrecipients: + petr.viktorin
2021-07-23 15:49:43petr.viktorinsetmessageid: <1627055383.07.0.643297795133.issue44727@roundup.psfhosted.org>
2021-07-23 15:49:43petr.viktorinlinkissue44727 messages
2021-07-23 15:49:43petr.viktorincreate