From 54b9b89921a01506f08b904cbc8be56533681bdb Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Wed, 22 Oct 2014 12:18:07 +0000 Subject: [PATCH] make the fields of BracketedString in the Python binding read/write --- src/runtime/python/pypgf.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/runtime/python/pypgf.c b/src/runtime/python/pypgf.c index d8e648992..10dd0969f 100644 --- a/src/runtime/python/pypgf.c +++ b/src/runtime/python/pypgf.c @@ -1617,15 +1617,15 @@ Bracket_repr(BracketObject *self) } static PyMemberDef Bracket_members[] = { - {"cat", T_OBJECT_EX, offsetof(BracketObject, cat), READONLY, + {"cat", T_OBJECT_EX, offsetof(BracketObject, cat), 0, "the syntactic category for this bracket"}, - {"fun", T_OBJECT_EX, offsetof(BracketObject, fun), READONLY, + {"fun", T_OBJECT_EX, offsetof(BracketObject, fun), 0, "the abstract function for this bracket"}, - {"fid", T_INT, offsetof(BracketObject, fid), READONLY, + {"fid", T_INT, offsetof(BracketObject, fid), 0, "an unique id which identifies this bracket in the whole bracketed string"}, - {"lindex", T_INT, offsetof(BracketObject, lindex), READONLY, + {"lindex", T_INT, offsetof(BracketObject, lindex), 0, "the constituent index"}, - {"children", T_OBJECT_EX, offsetof(BracketObject, children), READONLY, + {"children", T_OBJECT_EX, offsetof(BracketObject, children), 0, "a list with the children of this bracket"}, {NULL} /* Sentinel */ };