}
static PyGetSetDef PyCField_getset[] = {
- { "offset", PyCField_get_offset, NULL, "offset in bytes of this field" },
- { "size", PyCField_get_size, NULL, "size in bytes of this field" },
+ { "offset", PyCField_get_offset, NULL, PyDoc_STR("offset in bytes of this field") },
+ { "size", PyCField_get_size, NULL, PyDoc_STR("size in bytes of this field") },
{ NULL, NULL, NULL, NULL },
};
};
static PyGetSetDef s_getsetlist[] = {
- {"format", (getter)s_get_format, (setter)NULL, "struct format string", NULL},
- {"size", (getter)s_get_size, (setter)NULL, "struct size in bytes", NULL},
+ {"format", (getter)s_get_format, (setter)NULL, PyDoc_STR("struct format string"), NULL},
+ {"size", (getter)s_get_size, (setter)NULL, PyDoc_STR("struct size in bytes"), NULL},
{NULL} /* sentinel */
};
static PyGetSetDef dictview_getset[] = {
{"mapping", dictview_mapping, (setter)NULL,
- "dictionary that this view refers to", NULL},
+ PyDoc_STR("dictionary that this view refers to"), NULL},
{0}
};
}
static PyGetSetDef paramspec_getset[] = {
- {"args", (getter)paramspec_args, NULL, "Represents positional arguments.", NULL},
- {"kwargs", (getter)paramspec_kwargs, NULL, "Represents keyword arguments.", NULL},
+ {"args", (getter)paramspec_args, NULL, PyDoc_STR("Represents positional arguments."), NULL},
+ {"kwargs", (getter)paramspec_kwargs, NULL, PyDoc_STR("Represents keyword arguments."), NULL},
{0},
};
}
static PyGetSetDef union_properties[] = {
- {"__parameters__", union_parameters, (setter)NULL, "Type variables in the types.UnionType.", NULL},
+ {"__parameters__", union_parameters, (setter)NULL,
+ PyDoc_STR("Type variables in the types.UnionType."), NULL},
{0}
};