diff --git a/Include/ceval.h b/Include/ceval.h index 93cf38ce6e2264a..e69e75d319de168 100644 --- a/Include/ceval.h +++ b/Include/ceval.h @@ -122,14 +122,12 @@ PyAPI_FUNC(void) PyEval_ReleaseThread(PyThreadState *tstate); #define Py_END_ALLOW_THREADS PyEval_RestoreThread(_save); \ } -/* Masks and values used by FORMAT_VALUE opcode. */ +/* String conversion constants. */ #define FVC_MASK 0x3 #define FVC_NONE 0x0 #define FVC_STR 0x1 #define FVC_REPR 0x2 #define FVC_ASCII 0x3 -#define FVS_MASK 0x4 -#define FVS_HAVE_SPEC 0x4 #ifndef Py_LIMITED_API # define Py_CPYTHON_CEVAL_H diff --git a/Misc/NEWS.d/next/C_API/2026-11-05-16-56-57.gh-issue-160109.Fvs4m2.rst b/Misc/NEWS.d/next/C_API/2026-11-05-16-56-57.gh-issue-160109.Fvs4m2.rst new file mode 100644 index 000000000000000..3f41492e70c8d92 --- /dev/null +++ b/Misc/NEWS.d/next/C_API/2026-11-05-16-56-57.gh-issue-160109.Fvs4m2.rst @@ -0,0 +1,2 @@ +Remove the unused ``FVS_MASK`` and ``FVS_HAVE_SPEC`` macros. They were used by +the ``FORMAT_VALUE`` opcode, which was removed in Python 3.13. diff --git a/Tools/build/check_capi_macros_ignored.txt b/Tools/build/check_capi_macros_ignored.txt index fefec42b7d381a0..1bcc319e1a24228 100644 --- a/Tools/build/check_capi_macros_ignored.txt +++ b/Tools/build/check_capi_macros_ignored.txt @@ -69,8 +69,6 @@ FVC_MASK FVC_NONE FVC_REPR FVC_STR -FVS_HAVE_SPEC -FVS_MASK GETPGRP_HAVE_ARG HAVE_ACCEPT HAVE_ACCEPT4