Bug report
It handles most with a specialized macro:
|
/* Kernel event messages */ |
|
#ifdef PF_SYSTEM |
|
ADD_INT_MACRO(m, PF_SYSTEM); |
|
#endif |
|
#ifdef AF_SYSTEM |
|
ADD_INT_MACRO(m, AF_SYSTEM); |
|
#endif |
but not these ones:
|
/* FreeBSD divert(4) */ |
|
#ifdef PF_DIVERT |
|
PyModule_AddIntMacro(m, PF_DIVERT); |
|
#endif |
|
#ifdef AF_DIVERT |
|
PyModule_AddIntMacro(m, AF_DIVERT); |
|
#endif |
|
|
Introduced in #96536
Linked PRs
Bug report
It handles most with a specialized macro:
cpython/Modules/socketmodule.c
Lines 7716 to 7722 in 81eba76
but not these ones:
cpython/Modules/socketmodule.c
Lines 7724 to 7731 in 81eba76
Introduced in #96536
Linked PRs