diff options
author | Sam Gross <colesbury@gmail.com> | 2023-10-30 16:06:09 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-30 16:06:09 (GMT) |
commit | 6dfb8fe0236718e9afc8136ff2b58dcfbc182022 (patch) | |
tree | 1b5ad337bc68ebc2ff1325c0b695807c48640d30 /Objects/sliceobject.c | |
parent | 05f2f0ac92afa560315eb66fd6576683c7f69e2d (diff) | |
download | cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.zip cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.tar.gz cpython-6dfb8fe0236718e9afc8136ff2b58dcfbc182022.tar.bz2 |
gh-110481: Implement biased reference counting (gh-110764)
Diffstat (limited to 'Objects/sliceobject.c')
-rw-r--r-- | Objects/sliceobject.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Objects/sliceobject.c b/Objects/sliceobject.c index 1513f3e..a3ed0c0 100644 --- a/Objects/sliceobject.c +++ b/Objects/sliceobject.c @@ -98,10 +98,7 @@ PyTypeObject PyEllipsis_Type = { ellipsis_new, /* tp_new */ }; -PyObject _Py_EllipsisObject = { - { _Py_IMMORTAL_REFCNT }, - &PyEllipsis_Type -}; +PyObject _Py_EllipsisObject = _PyObject_HEAD_INIT(&PyEllipsis_Type); /* Slice object implementation */ |