mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
closes bpo-32980 Remove _PyFrame_Init (GH-5965)
This commit is contained in:
parent
0e6c8ee235
commit
7023644e0c
3 changed files with 0 additions and 12 deletions
|
@ -148,7 +148,6 @@ PyAPI_FUNC(int) _PySys_EndInit(PyObject *sysdict, _PyMainInterpreterConfig *conf
|
|||
PyAPI_FUNC(_PyInitError) _PyImport_Init(PyInterpreterState *interp);
|
||||
PyAPI_FUNC(void) _PyExc_Init(PyObject * bltinmod);
|
||||
PyAPI_FUNC(_PyInitError) _PyImportHooks_Init(void);
|
||||
PyAPI_FUNC(int) _PyFrame_Init(void);
|
||||
PyAPI_FUNC(int) _PyFloat_Init(void);
|
||||
PyAPI_FUNC(int) PyByteArray_Init(void);
|
||||
PyAPI_FUNC(_PyInitError) _Py_HashRandomization_Init(const _PyCoreConfig *);
|
||||
|
|
|
@ -552,14 +552,6 @@ PyTypeObject PyFrame_Type = {
|
|||
|
||||
_Py_IDENTIFIER(__builtins__);
|
||||
|
||||
int _PyFrame_Init()
|
||||
{
|
||||
/* Before, PyId___builtins__ was a string created explicitly in
|
||||
this function. Now there is nothing to initialize anymore, but
|
||||
the function is kept for backward compatibility. */
|
||||
return 1;
|
||||
}
|
||||
|
||||
PyFrameObject* _Py_HOT_FUNCTION
|
||||
_PyFrame_New_NoTrack(PyThreadState *tstate, PyCodeObject *code,
|
||||
PyObject *globals, PyObject *locals)
|
||||
|
|
|
@ -690,9 +690,6 @@ _Py_InitializeCore(const _PyCoreConfig *core_config)
|
|||
|
||||
_Py_ReadyTypes();
|
||||
|
||||
if (!_PyFrame_Init())
|
||||
return _Py_INIT_ERR("can't init frames");
|
||||
|
||||
if (!_PyLong_Init())
|
||||
return _Py_INIT_ERR("can't init longs");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue