mirror of https://github.com/python/cpython.git
Issue #8973: Expanded Struct.__doc__.
This commit is contained in:
parent
8d81c6a6f4
commit
0bd003a55e
|
@ -1683,7 +1683,11 @@ static struct PyMethodDef s_methods[] = {
|
||||||
{NULL, NULL} /* sentinel */
|
{NULL, NULL} /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
PyDoc_STRVAR(s__doc__, "Compiled struct object");
|
PyDoc_STRVAR(s__doc__,
|
||||||
|
"Struct(fmt) --> compiled struct object\n"
|
||||||
|
"\n"
|
||||||
|
"Return a new Struct object which writes and reads binary data according to\n"
|
||||||
|
"the format string fmt. See help(struct) for more on format strings.");
|
||||||
|
|
||||||
#define OFF(x) offsetof(PyStructObject, x)
|
#define OFF(x) offsetof(PyStructObject, x)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue