@@ -442,15 +442,15 @@ parser_issuite(PyST_Object *self, PyObject *args, PyObject *kw)
442442static PyMethodDef
443443parser_methods [] = {
444444 {"compile" , (PyCFunction )parser_compilest , PUBLIC_METHOD_TYPE ,
445- "Compile this ST object into a code object." },
445+ PyDoc_STR ( "Compile this ST object into a code object." ) },
446446 {"isexpr" , (PyCFunction )parser_isexpr , PUBLIC_METHOD_TYPE ,
447- "Determines if this ST object was created from an expression." },
447+ PyDoc_STR ( "Determines if this ST object was created from an expression." ) },
448448 {"issuite" , (PyCFunction )parser_issuite , PUBLIC_METHOD_TYPE ,
449- "Determines if this ST object was created from a suite." },
449+ PyDoc_STR ( "Determines if this ST object was created from a suite." ) },
450450 {"tolist" , (PyCFunction )parser_st2list , PUBLIC_METHOD_TYPE ,
451- "Creates a list-tree representation of this ST." },
451+ PyDoc_STR ( "Creates a list-tree representation of this ST." ) },
452452 {"totuple" , (PyCFunction )parser_st2tuple , PUBLIC_METHOD_TYPE ,
453- "Creates a tuple-tree representation of this ST." },
453+ PyDoc_STR ( "Creates a tuple-tree representation of this ST." ) },
454454
455455 {NULL , NULL , 0 , NULL }
456456};
@@ -2816,37 +2816,37 @@ parser__pickler(PyObject *self, PyObject *args)
28162816 */
28172817static PyMethodDef parser_functions [] = {
28182818 {"ast2tuple" , (PyCFunction )parser_st2tuple , PUBLIC_METHOD_TYPE ,
2819- "Creates a tuple-tree representation of an ST." },
2819+ PyDoc_STR ( "Creates a tuple-tree representation of an ST." ) },
28202820 {"ast2list" , (PyCFunction )parser_st2list , PUBLIC_METHOD_TYPE ,
2821- "Creates a list-tree representation of an ST." },
2821+ PyDoc_STR ( "Creates a list-tree representation of an ST." ) },
28222822 {"compileast" , (PyCFunction )parser_compilest , PUBLIC_METHOD_TYPE ,
2823- "Compiles an ST object into a code object." },
2823+ PyDoc_STR ( "Compiles an ST object into a code object." ) },
28242824 {"compilest" , (PyCFunction )parser_compilest , PUBLIC_METHOD_TYPE ,
2825- "Compiles an ST object into a code object." },
2825+ PyDoc_STR ( "Compiles an ST object into a code object." ) },
28262826 {"expr" , (PyCFunction )parser_expr , PUBLIC_METHOD_TYPE ,
2827- "Creates an ST object from an expression." },
2827+ PyDoc_STR ( "Creates an ST object from an expression." ) },
28282828 {"isexpr" , (PyCFunction )parser_isexpr , PUBLIC_METHOD_TYPE ,
2829- "Determines if an ST object was created from an expression." },
2829+ PyDoc_STR ( "Determines if an ST object was created from an expression." ) },
28302830 {"issuite" , (PyCFunction )parser_issuite , PUBLIC_METHOD_TYPE ,
2831- "Determines if an ST object was created from a suite." },
2831+ PyDoc_STR ( "Determines if an ST object was created from a suite." ) },
28322832 {"suite" , (PyCFunction )parser_suite , PUBLIC_METHOD_TYPE ,
2833- "Creates an ST object from a suite." },
2833+ PyDoc_STR ( "Creates an ST object from a suite." ) },
28342834 {"sequence2ast" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
2835- "Creates an ST object from a tree representation." },
2835+ PyDoc_STR ( "Creates an ST object from a tree representation." ) },
28362836 {"sequence2st" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
2837- "Creates an ST object from a tree representation." },
2837+ PyDoc_STR ( "Creates an ST object from a tree representation." ) },
28382838 {"st2tuple" , (PyCFunction )parser_st2tuple , PUBLIC_METHOD_TYPE ,
2839- "Creates a tuple-tree representation of an ST." },
2839+ PyDoc_STR ( "Creates a tuple-tree representation of an ST." ) },
28402840 {"st2list" , (PyCFunction )parser_st2list , PUBLIC_METHOD_TYPE ,
2841- "Creates a list-tree representation of an ST." },
2841+ PyDoc_STR ( "Creates a list-tree representation of an ST." ) },
28422842 {"tuple2ast" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
2843- "Creates an ST object from a tree representation." },
2843+ PyDoc_STR ( "Creates an ST object from a tree representation." ) },
28442844 {"tuple2st" , (PyCFunction )parser_tuple2st , PUBLIC_METHOD_TYPE ,
2845- "Creates an ST object from a tree representation." },
2845+ PyDoc_STR ( "Creates an ST object from a tree representation." ) },
28462846
28472847 /* private stuff: support pickle module */
28482848 {"_pickler" , (PyCFunction )parser__pickler , METH_VARARGS ,
2849- "Returns the pickle magic to allow ST objects to be pickled." },
2849+ PyDoc_STR ( "Returns the pickle magic to allow ST objects to be pickled." ) },
28502850
28512851 {NULL , NULL , 0 , NULL }
28522852 };
0 commit comments