From bff947f44f70e3c3f5f4d25ed07524730ca56acf Mon Sep 17 00:00:00 2001 From: "jordi.saludes" Date: Thu, 8 Dec 2011 13:08:36 +0000 Subject: [PATCH] Changed 'lin' method name to 'linearize' (py-bindings). --- contrib/py-bindings/example.rst | 2 +- contrib/py-bindings/gfmodule.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/py-bindings/example.rst b/contrib/py-bindings/example.rst index 4ee3623fc..4d3c015c0 100644 --- a/contrib/py-bindings/example.rst +++ b/contrib/py-bindings/example.rst @@ -46,7 +46,7 @@ Notice that parsing returns a list of gf trees. Let's save it and linearize it in Spanish: >>> t = pgf.parse(eng, "is 42 prime") ->>> pgf.lin(spa, t[0]) +>>> pgf.linearize(spa, t[0]) '42 es primo' (which is not, but there is a '?' lacking at the end, remember?) diff --git a/contrib/py-bindings/gfmodule.c b/contrib/py-bindings/gfmodule.c index dc8f583a7..931baf072 100644 --- a/contrib/py-bindings/gfmodule.c +++ b/contrib/py-bindings/gfmodule.c @@ -175,7 +175,7 @@ completions(PGF *self, PyObject *args, PyObject *kws) static PyMethodDef pgf_methods[] = { {"parse", (PyCFunction)parse, METH_VARARGS|METH_KEYWORDS, "Parse a string."}, - {"lin", (PyCFunction)linearize, METH_VARARGS,"Linearize tree."}, + {"linearize", (PyCFunction)linearize, METH_VARARGS,"Linearize tree."}, {"lang_code", (PyCFunction)languageCode, METH_VARARGS,"Get the language code."}, {"print_name", (PyCFunction)printName, METH_VARARGS,"Get the print name for a id."}, {"fun_type", (PyCFunction)functiontype, METH_VARARGS,"Get the type of a fun expression."},