mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -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: {
|
||||
PyObject* res = Py_BuildValue("OO", Py_None, args);
|
||||
Py_DECREF(args);
|
||||
return Py_None;
|
||||
return res;
|
||||
}
|
||||
case PGF_EXPR_FUN: {
|
||||
PgfExprFun* efun = i.data;
|
||||
|
||||
Reference in New Issue
Block a user