diff options
author | Sam Gross <colesbury@gmail.com> | 2024-10-01 16:39:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-01 16:39:56 (GMT) |
commit | 5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04 (patch) | |
tree | 60b3e8d6790d7e54c3f507dc5ddb16ac548b076a /Modules/_testcapimodule.c | |
parent | 60ff67d010078eca15a74b1429caf779ac4f9c74 (diff) | |
download | cpython-5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04.zip cpython-5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04.tar.gz cpython-5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04.tar.bz2 |
gh-124296: Remove private dictionary version tag (PEP 699) (#124472)
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index 5966eb6..72b9792 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -1909,25 +1909,6 @@ getitem_with_error(PyObject *self, PyObject *args) return PyObject_GetItem(map, key); } -static PyObject * -dict_get_version(PyObject *self, PyObject *args) -{ - PyDictObject *dict; - uint64_t version; - - if (!PyArg_ParseTuple(args, "O!", &PyDict_Type, &dict)) - return NULL; - - _Py_COMP_DIAG_PUSH - _Py_COMP_DIAG_IGNORE_DEPR_DECLS - version = dict->ma_version_tag; - _Py_COMP_DIAG_POP - - static_assert(sizeof(unsigned long long) >= sizeof(version), - "version is larger than unsigned long long"); - return PyLong_FromUnsignedLongLong((unsigned long long)version); -} - static PyObject * raise_SIGINT_then_send_None(PyObject *self, PyObject *args) @@ -3407,7 +3388,6 @@ static PyMethodDef TestMethods[] = { {"return_result_with_error", return_result_with_error, METH_NOARGS}, {"getitem_with_error", getitem_with_error, METH_VARARGS}, {"Py_CompileString", pycompilestring, METH_O}, - {"dict_get_version", dict_get_version, METH_VARARGS}, {"raise_SIGINT_then_send_None", raise_SIGINT_then_send_None, METH_VARARGS}, {"stack_pointer", stack_pointer, METH_NOARGS}, #ifdef W_STOPCODE |