[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: 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

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Petr Viktorin
Petr Viktorin added the comment: Devguide PR: https://github.com/python/devguide/pull/730 -- ___ Python tracker ___ ___

[issue44727] Stable ABI should avoid `enum`

2021-07-23 Thread Petr Viktorin
New submission from Petr Viktorin : Adding a new enumerator to a C enum can change the size of the type, which would break the ABI. This is not often a problem in practice, but the rules around when it is a problem and when it isn't are complicated enough that I believe enum should not be