summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorSam Gross <colesbury@gmail.com>2024-10-01 16:39:56 (GMT)
committerGitHub <noreply@github.com>2024-10-01 16:39:56 (GMT)
commit5aa91c56bf14c38b4c7f5ccaaa3cd24fe3fb0f04 (patch)
tree60b3e8d6790d7e54c3f507dc5ddb16ac548b076a /Modules/_testcapimodule.c
parent60ff67d010078eca15a74b1429caf779ac4f9c74 (diff)
downloadcpython-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.c20
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