File tree 3 files changed +0
-23
lines changed
3 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,6 @@ PyAPI_FUNC(PyObject *) _PyLong_GCD(PyObject *, PyObject *);
210
210
#endif /* !Py_LIMITED_API */
211
211
212
212
#ifndef Py_LIMITED_API
213
- PyAPI_DATA (PyObject * ) _PyLong_Zero ;
214
- PyAPI_DATA (PyObject * ) _PyLong_One ;
215
-
216
213
PyAPI_FUNC (PyObject * ) _PyLong_Rshift (PyObject * , size_t );
217
214
PyAPI_FUNC (PyObject * ) _PyLong_Lshift (PyObject * , size_t );
218
215
#endif
Original file line number Diff line number Diff line change @@ -32,9 +32,6 @@ _Py_IDENTIFIER(big);
32
32
(Py_SIZE(x) == 0 ? (sdigit)0 : \
33
33
(sdigit)(x)->ob_digit[0]))
34
34
35
- PyObject * _PyLong_Zero = NULL ;
36
- PyObject * _PyLong_One = NULL ;
37
-
38
35
#define IS_SMALL_INT (ival ) (-NSMALLNEGINTS <= (ival) && (ival) < NSMALLPOSINTS)
39
36
#define IS_SMALL_UINT (ival ) ((ival) < NSMALLPOSINTS)
40
37
@@ -5723,16 +5720,6 @@ _PyLong_Init(PyThreadState *tstate)
5723
5720
}
5724
5721
5725
5722
if (_Py_IsMainInterpreter (tstate )) {
5726
- _PyLong_Zero = PyLong_FromLong (0 );
5727
- if (_PyLong_Zero == NULL ) {
5728
- return 0 ;
5729
- }
5730
-
5731
- _PyLong_One = PyLong_FromLong (1 );
5732
- if (_PyLong_One == NULL ) {
5733
- return 0 ;
5734
- }
5735
-
5736
5723
/* initialize int_info */
5737
5724
if (Int_InfoType .tp_name == NULL ) {
5738
5725
if (PyStructSequence_InitType2 (& Int_InfoType , & int_info_desc ) < 0 ) {
@@ -5747,11 +5734,6 @@ _PyLong_Init(PyThreadState *tstate)
5747
5734
void
5748
5735
_PyLong_Fini (PyThreadState * tstate )
5749
5736
{
5750
- if (_Py_IsMainInterpreter (tstate )) {
5751
- Py_CLEAR (_PyLong_One );
5752
- Py_CLEAR (_PyLong_Zero );
5753
- }
5754
-
5755
5737
for (Py_ssize_t i = 0 ; i < NSMALLNEGINTS + NSMALLPOSINTS ; i ++ ) {
5756
5738
Py_CLEAR (tstate -> interp -> small_ints [i ]);
5757
5739
}
Original file line number Diff line number Diff line change @@ -154,8 +154,6 @@ Objects/bytesobject.c:nullstring static PyBytesO
154
154
Objects/codeobject.c:PyCode_NewEmpty():nulltuple static PyObject *nulltuple
155
155
Objects/dictobject.c:empty_values static PyObject *empty_values[1]
156
156
Objects/listobject.c:indexerr static PyObject *indexerr
157
- Objects/longobject.c:_PyLong_One PyObject *_PyLong_One
158
- Objects/longobject.c:_PyLong_Zero PyObject *_PyLong_Zero
159
157
Objects/longobject.c:small_ints static PyLongObject small_ints[NSMALLNEGINTS + NSMALLPOSINTS]
160
158
Objects/setobject.c:emptyfrozenset static PyObject *emptyfrozenset
161
159
Python/context.c:_token_missing static PyObject *_token_missing
You can’t perform that action at this time.
0 commit comments