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

Rename notimplemented_methods into nodefault_methods #118896

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 8 Objects/typevarobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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}
};
Expand All @@ -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.");
Expand All @@ -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,
};

Expand Down
Loading
Morty Proxy This is a proxified and sanitized view of the page, visit original site.