We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e301e1e commit 2ec6f1bCopy full SHA for 2ec6f1b
src/sage/cpython/atexit.pyx
@@ -173,6 +173,7 @@ cdef extern from *:
173
174
// Dummy function for Python 3.14+ (never called)
175
static atexit_callback_struct** get_atexit_callbacks_array(PyObject *self) {
176
+ PyErr_SetString(PyExc_RuntimeError, "Python >= 3.14 has no atexit array");
177
return NULL;
178
}
179
#else
@@ -186,6 +187,7 @@ cdef extern from *:
186
187
188
// Dummy function for Python < 3.14 (never called)
189
static PyObject* get_atexit_callbacks_list(PyObject *self) {
190
+ PyErr_SetString(PyExc_RuntimeError, "Python < 3.14 has no atexit list");
191
192
193
#endif
0 commit comments