Skip to content

Commit a1303a4

Browse files
committed
reduce symbol visibility
1 parent 6fce800 commit a1303a4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Include/internal/pycore_ceval.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,13 @@ PyAPI_FUNC(PyObject *) _PyEval_LoadName(PyThreadState *tstate, _PyInterpreterFra
310310
PyAPI_FUNC(int)
311311
_Py_Check_ArgsIterable(PyThreadState *tstate, PyObject *func, PyObject *args);
312312

313-
PyAPI_FUNC(int) _PyEval_SpecialMethodCanSuggest(PyObject *self, int oparg);
313+
/*
314+
* Indicate whether a special method of given 'oparg' can use the (improved)
315+
* alternative errror message instead. Only methods loaded by LOAD_SPECIAL
316+
* support alternative errror messages.
317+
*/
318+
extern int
319+
_PyEval_SpecialMethodCanSuggest(PyObject *self, int oparg);
314320

315321
/* Bits that can be set in PyThreadState.eval_breaker */
316322
#define _PY_GIL_DROP_REQUEST_BIT (1U << 0)

0 commit comments

Comments
 (0)