mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-23 09:52:55 -06:00
now the call Expr.unpack("? e1 e2") in Python returns a pair with None as the first element and a the list [e1,e2] as the second. This makes it easier to decompose partial abstract trees
This commit is contained in:
@@ -343,8 +343,9 @@ Expr_unpack(ExprObject* self, PyObject *fargs)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case PGF_EXPR_META: {
|
case PGF_EXPR_META: {
|
||||||
|
PyObject* res = Py_BuildValue("OO", Py_None, args);
|
||||||
Py_DECREF(args);
|
Py_DECREF(args);
|
||||||
return Py_None;
|
return res;
|
||||||
}
|
}
|
||||||
case PGF_EXPR_FUN: {
|
case PGF_EXPR_FUN: {
|
||||||
PgfExprFun* efun = i.data;
|
PgfExprFun* efun = i.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user