Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 004db21

Browse filesBrowse files
authored
Rename notimplemented_methods into nodefault_methods (#118896)
1 parent 7ac933e commit 004db21
Copy full SHA for 004db21

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎Objects/typevarobject.c

Copy file name to clipboardExpand all lines: Objects/typevarobject.c
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ NoDefault_reduce(PyObject *op, PyObject *Py_UNUSED(ignored))
7373
return PyUnicode_FromString("NoDefault");
7474
}
7575

76-
static PyMethodDef notimplemented_methods[] = {
76+
static PyMethodDef nodefault_methods[] = {
7777
{"__reduce__", NoDefault_reduce, METH_NOARGS, NULL},
7878
{NULL, NULL}
7979
};
@@ -98,7 +98,7 @@ nodefault_dealloc(PyObject *nodefault)
9898
_Py_SetImmortal(nodefault);
9999
}
100100

101-
PyDoc_STRVAR(notimplemented_doc,
101+
PyDoc_STRVAR(nodefault_doc,
102102
"NoDefaultType()\n"
103103
"--\n\n"
104104
"The type of the NoDefault singleton.");
@@ -109,8 +109,8 @@ PyTypeObject _PyNoDefault_Type = {
109109
.tp_dealloc = nodefault_dealloc,
110110
.tp_repr = NoDefault_repr,
111111
.tp_flags = Py_TPFLAGS_DEFAULT,
112-
.tp_doc = notimplemented_doc,
113-
.tp_methods = notimplemented_methods,
112+
.tp_doc = nodefault_doc,
113+
.tp_methods = nodefault_methods,
114114
.tp_new = nodefault_new,
115115
};
116116

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.