diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-13 22:20:41 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2002-08-13 22:20:41 (GMT) |
commit | 200788ce4594bb4ddf47b319f45d99c8206dc0ec (patch) | |
tree | 5898dd92de09d73df8baa03e54053fe726057619 /Modules/parsermodule.c | |
parent | 5dc2a37f0f42db96b30c35d273e1ea09e479e478 (diff) | |
download | cpython-200788ce4594bb4ddf47b319f45d99c8206dc0ec.zip cpython-200788ce4594bb4ddf47b319f45d99c8206dc0ec.tar.gz cpython-200788ce4594bb4ddf47b319f45d99c8206dc0ec.tar.bz2 |
Allow more docstrings to be removed during compilation in some modules
Diffstat (limited to 'Modules/parsermodule.c')
-rw-r--r-- | Modules/parsermodule.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/Modules/parsermodule.c b/Modules/parsermodule.c index c48c368..203786e 100644 --- a/Modules/parsermodule.c +++ b/Modules/parsermodule.c @@ -442,15 +442,15 @@ parser_issuite(PyST_Object *self, PyObject *args, PyObject *kw) static PyMethodDef parser_methods[] = { {"compile", (PyCFunction)parser_compilest, PUBLIC_METHOD_TYPE, - "Compile this ST object into a code object."}, + PyDoc_STR("Compile this ST object into a code object.")}, {"isexpr", (PyCFunction)parser_isexpr, PUBLIC_METHOD_TYPE, - "Determines if this ST object was created from an expression."}, + PyDoc_STR("Determines if this ST object was created from an expression.")}, {"issuite", (PyCFunction)parser_issuite, PUBLIC_METHOD_TYPE, - "Determines if this ST object was created from a suite."}, + PyDoc_STR("Determines if this ST object was created from a suite.")}, {"tolist", (PyCFunction)parser_st2list, PUBLIC_METHOD_TYPE, - "Creates a list-tree representation of this ST."}, + PyDoc_STR("Creates a list-tree representation of this ST.")}, {"totuple", (PyCFunction)parser_st2tuple, PUBLIC_METHOD_TYPE, - "Creates a tuple-tree representation of this ST."}, + PyDoc_STR("Creates a tuple-tree representation of this ST.")}, {NULL, NULL, 0, NULL} }; @@ -2816,37 +2816,37 @@ parser__pickler(PyObject *self, PyObject *args) */ static PyMethodDef parser_functions[] = { {"ast2tuple", (PyCFunction)parser_st2tuple, PUBLIC_METHOD_TYPE, - "Creates a tuple-tree representation of an ST."}, + PyDoc_STR("Creates a tuple-tree representation of an ST.")}, {"ast2list", (PyCFunction)parser_st2list, PUBLIC_METHOD_TYPE, - "Creates a list-tree representation of an ST."}, + PyDoc_STR("Creates a list-tree representation of an ST.")}, {"compileast", (PyCFunction)parser_compilest, PUBLIC_METHOD_TYPE, - "Compiles an ST object into a code object."}, + PyDoc_STR("Compiles an ST object into a code object.")}, {"compilest", (PyCFunction)parser_compilest, PUBLIC_METHOD_TYPE, - "Compiles an ST object into a code object."}, + PyDoc_STR("Compiles an ST object into a code object.")}, {"expr", (PyCFunction)parser_expr, PUBLIC_METHOD_TYPE, - "Creates an ST object from an expression."}, + PyDoc_STR("Creates an ST object from an expression.")}, {"isexpr", (PyCFunction)parser_isexpr, PUBLIC_METHOD_TYPE, - "Determines if an ST object was created from an expression."}, + PyDoc_STR("Determines if an ST object was created from an expression.")}, {"issuite", (PyCFunction)parser_issuite, PUBLIC_METHOD_TYPE, - "Determines if an ST object was created from a suite."}, + PyDoc_STR("Determines if an ST object was created from a suite.")}, {"suite", (PyCFunction)parser_suite, PUBLIC_METHOD_TYPE, - "Creates an ST object from a suite."}, + PyDoc_STR("Creates an ST object from a suite.")}, {"sequence2ast", (PyCFunction)parser_tuple2st, PUBLIC_METHOD_TYPE, - "Creates an ST object from a tree representation."}, + PyDoc_STR("Creates an ST object from a tree representation.")}, {"sequence2st", (PyCFunction)parser_tuple2st, PUBLIC_METHOD_TYPE, - "Creates an ST object from a tree representation."}, + PyDoc_STR("Creates an ST object from a tree representation.")}, {"st2tuple", (PyCFunction)parser_st2tuple, PUBLIC_METHOD_TYPE, - "Creates a tuple-tree representation of an ST."}, + PyDoc_STR("Creates a tuple-tree representation of an ST.")}, {"st2list", (PyCFunction)parser_st2list, PUBLIC_METHOD_TYPE, - "Creates a list-tree representation of an ST."}, + PyDoc_STR("Creates a list-tree representation of an ST.")}, {"tuple2ast", (PyCFunction)parser_tuple2st, PUBLIC_METHOD_TYPE, - "Creates an ST object from a tree representation."}, + PyDoc_STR("Creates an ST object from a tree representation.")}, {"tuple2st", (PyCFunction)parser_tuple2st, PUBLIC_METHOD_TYPE, - "Creates an ST object from a tree representation."}, + PyDoc_STR("Creates an ST object from a tree representation.")}, /* private stuff: support pickle module */ {"_pickler", (PyCFunction)parser__pickler, METH_VARARGS, - "Returns the pickle magic to allow ST objects to be pickled."}, + PyDoc_STR("Returns the pickle magic to allow ST objects to be pickled.")}, {NULL, NULL, 0, NULL} }; |