https://github.com/python/cpython/commit/93fce2dcd5198fc742971e4aed0f023aa63c92fb
commit: 93fce2dcd5198fc742971e4aed0f023aa63c92fb
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: sobolevn <[email protected]>
date: 2024-05-10T13:08:31Z
summary:

[3.13] Rename `notimplemented_methods` into `nodefault_methods` (GH-118896) 
(#118898)

Rename `notimplemented_methods` into `nodefault_methods` (GH-118896)
(cherry picked from commit 004db2170ecfc27fc8ceea29fee0a10c1b7dafdf)

Co-authored-by: Nikita Sobolev <[email protected]>

files:
M Objects/typevarobject.c

diff --git a/Objects/typevarobject.c b/Objects/typevarobject.c
index cc916045266aea..c8ab14053de418 100644
--- a/Objects/typevarobject.c
+++ b/Objects/typevarobject.c
@@ -73,7 +73,7 @@ NoDefault_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
     return PyUnicode_FromString("NoDefault");
 }
 
-static PyMethodDef notimplemented_methods[] = {
+static PyMethodDef nodefault_methods[] = {
     {"__reduce__", NoDefault_reduce, METH_NOARGS, NULL},
     {NULL, NULL}
 };
@@ -98,7 +98,7 @@ nodefault_dealloc(PyObject *nodefault)
     _Py_SetImmortal(nodefault);
 }
 
-PyDoc_STRVAR(notimplemented_doc,
+PyDoc_STRVAR(nodefault_doc,
 "NoDefaultType()\n"
 "--\n\n"
 "The type of the NoDefault singleton.");
@@ -109,8 +109,8 @@ PyTypeObject _PyNoDefault_Type = {
     .tp_dealloc = nodefault_dealloc,
     .tp_repr = NoDefault_repr,
     .tp_flags = Py_TPFLAGS_DEFAULT,
-    .tp_doc = notimplemented_doc,
-    .tp_methods = notimplemented_methods,
+    .tp_doc = nodefault_doc,
+    .tp_methods = nodefault_methods,
     .tp_new = nodefault_new,
 };
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to