mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-84436: Immortalize in _PyStructSequence_InitBuiltinWithFlags() (gh-104054)
This also does some cleanup.
This commit is contained in:
parent
d448fcb032
commit
59bc36aacd
8 changed files with 74 additions and 59 deletions
|
|
@ -12,7 +12,7 @@
|
|||
#include "pycore_object.h" // _PyObject_Init()
|
||||
#include "pycore_pymath.h" // _PY_SHORT_FLOAT_REPR
|
||||
#include "pycore_pystate.h" // _PyInterpreterState_GET()
|
||||
#include "pycore_structseq.h" // _PyStructSequence_FiniType()
|
||||
#include "pycore_structseq.h" // _PyStructSequence_FiniBuiltin()
|
||||
|
||||
#include <ctype.h>
|
||||
#include <float.h>
|
||||
|
|
@ -2029,7 +2029,7 @@ void
|
|||
_PyFloat_FiniType(PyInterpreterState *interp)
|
||||
{
|
||||
if (_Py_IsMainInterpreter(interp)) {
|
||||
_PyStructSequence_FiniType(&FloatInfoType);
|
||||
_PyStructSequence_FiniBuiltin(&FloatInfoType);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue