@@ -40,8 +40,6 @@ PyAPI_FUNC(int) _PyInterpreterState_HasFeature(PyInterpreterState *interp,
4040PyAPI_FUNC (int ) _PyInterpreterState_RequiresIDRef (PyInterpreterState * );
4141PyAPI_FUNC (void ) _PyInterpreterState_RequireIDRef (PyInterpreterState * , int );
4242
43- PyAPI_FUNC (PyObject * ) _PyInterpreterState_GetMainModule (PyInterpreterState * );
44-
4543
4644/* State unique per thread */
4745
@@ -261,16 +259,10 @@ struct _ts {
261259
262260/* other API */
263261
264- /* An alias for the internal _PyThreadState_New(),
265- kept for stable ABI compatibility. */
266- PyAPI_FUNC (PyThreadState * ) _PyThreadState_Prealloc (PyInterpreterState * );
267-
268262/* Similar to PyThreadState_Get(), but don't issue a fatal error
269263 * if it is NULL. */
270264PyAPI_FUNC (PyThreadState * ) _PyThreadState_UncheckedGet (void );
271265
272- PyAPI_FUNC (PyObject * ) _PyThreadState_GetDict (PyThreadState * tstate );
273-
274266// Disable tracing and profiling.
275267PyAPI_FUNC (void ) PyThreadState_EnterTracing (PyThreadState * tstate );
276268
@@ -295,16 +287,6 @@ PyAPI_FUNC(int) PyGILState_Check(void);
295287 See also PyInterpreterState_Get() and _PyInterpreterState_GET(). */
296288PyAPI_FUNC (PyInterpreterState * ) _PyGILState_GetInterpreterStateUnsafe (void );
297289
298- /* The implementation of sys._current_frames() Returns a dict mapping
299- thread id to that thread's current frame.
300- */
301- PyAPI_FUNC (PyObject * ) _PyThread_CurrentFrames (void );
302-
303- /* The implementation of sys._current_exceptions() Returns a dict mapping
304- thread id to that thread's current exception.
305- */
306- PyAPI_FUNC (PyObject * ) _PyThread_CurrentExceptions (void );
307-
308290/* Routines for advanced debuggers, requested by David Beazley.
309291 Don't use unless you know what you are doing! */
310292PyAPI_FUNC (PyInterpreterState * ) PyInterpreterState_Main (void );
@@ -324,45 +306,6 @@ PyAPI_FUNC(void) _PyInterpreterState_SetEvalFrameFunc(
324306 PyInterpreterState * interp ,
325307 _PyFrameEvalFunction eval_frame );
326308
327- PyAPI_FUNC (const PyConfig * ) _PyInterpreterState_GetConfig (PyInterpreterState * interp );
328-
329- /* Get a copy of the current interpreter configuration.
330-
331- Return 0 on success. Raise an exception and return -1 on error.
332-
333- The caller must initialize 'config', using PyConfig_InitPythonConfig()
334- for example.
335-
336- Python must be preinitialized to call this method.
337- The caller must hold the GIL.
338-
339- Once done with the configuration, PyConfig_Clear() must be called to clear
340- it. */
341- PyAPI_FUNC (int ) _PyInterpreterState_GetConfigCopy (
342- struct PyConfig * config );
343-
344- /* Set the configuration of the current interpreter.
345-
346- This function should be called during or just after the Python
347- initialization.
348-
349- Update the sys module with the new configuration. If the sys module was
350- modified directly after the Python initialization, these changes are lost.
351-
352- Some configuration like faulthandler or warnoptions can be updated in the
353- configuration, but don't reconfigure Python (don't enable/disable
354- faulthandler and don't reconfigure warnings filters).
355-
356- Return 0 on success. Raise an exception and return -1 on error.
357-
358- The configuration should come from _PyInterpreterState_GetConfigCopy(). */
359- PyAPI_FUNC (int ) _PyInterpreterState_SetConfig (
360- const struct PyConfig * config );
361-
362- // Get the configuration of the current interpreter.
363- // The caller must hold the GIL.
364- PyAPI_FUNC (const PyConfig * ) _Py_GetConfig (void );
365-
366309
367310/* cross-interpreter data */
368311
0 commit comments