mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Allow more docstrings to be removed during compilation in some modules
This commit is contained in:
parent
5dc2a37f0f
commit
200788ce45
4 changed files with 40 additions and 38 deletions
|
@ -146,9 +146,9 @@ op_delslice(PyObject *s, PyObject *a)
|
|||
|
||||
#undef spam1
|
||||
#undef spam2
|
||||
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS, DOC},
|
||||
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS, PyDoc_STR(DOC)},
|
||||
#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
|
||||
{#ALTOP, op_##OP, METH_VARARGS, DOC},
|
||||
{#ALTOP, op_##OP, METH_VARARGS, PyDoc_STR(DOC)},
|
||||
|
||||
static struct PyMethodDef operator_methods[] = {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue