@@ -40,8 +40,6 @@ PyAPI_FUNC(int) _PyInterpreterState_HasFeature(PyInterpreterState *interp,
40
40
PyAPI_FUNC (int ) _PyInterpreterState_RequiresIDRef (PyInterpreterState * );
41
41
PyAPI_FUNC (void ) _PyInterpreterState_RequireIDRef (PyInterpreterState * , int );
42
42
43
- PyAPI_FUNC (PyObject * ) _PyInterpreterState_GetMainModule (PyInterpreterState * );
44
-
45
43
46
44
/* State unique per thread */
47
45
@@ -261,16 +259,10 @@ struct _ts {
261
259
262
260
/* other API */
263
261
264
- /* An alias for the internal _PyThreadState_New(),
265
- kept for stable ABI compatibility. */
266
- PyAPI_FUNC (PyThreadState * ) _PyThreadState_Prealloc (PyInterpreterState * );
267
-
268
262
/* Similar to PyThreadState_Get(), but don't issue a fatal error
269
263
* if it is NULL. */
270
264
PyAPI_FUNC (PyThreadState * ) _PyThreadState_UncheckedGet (void );
271
265
272
- PyAPI_FUNC (PyObject * ) _PyThreadState_GetDict (PyThreadState * tstate );
273
-
274
266
// Disable tracing and profiling.
275
267
PyAPI_FUNC (void ) PyThreadState_EnterTracing (PyThreadState * tstate );
276
268
@@ -295,16 +287,6 @@ PyAPI_FUNC(int) PyGILState_Check(void);
295
287
See also PyInterpreterState_Get() and _PyInterpreterState_GET(). */
296
288
PyAPI_FUNC (PyInterpreterState * ) _PyGILState_GetInterpreterStateUnsafe (void );
297
289
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
-
308
290
/* Routines for advanced debuggers, requested by David Beazley.
309
291
Don't use unless you know what you are doing! */
310
292
PyAPI_FUNC (PyInterpreterState * ) PyInterpreterState_Main (void );
@@ -324,45 +306,6 @@ PyAPI_FUNC(void) _PyInterpreterState_SetEvalFrameFunc(
324
306
PyInterpreterState * interp ,
325
307
_PyFrameEvalFunction eval_frame );
326
308
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
-
366
309
367
310
/* cross-interpreter data */
368
311
0 commit comments