mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 21:19:31 -06:00
Implement Expr_str correctly (but doesn't handle big ints yet)
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
static PyObject *
|
||||
Expr_str(ExprObject *self)
|
||||
{
|
||||
PgfText *s = pgf_print_expr((PgfExpr) self, NULL, 1, &marshaller);
|
||||
PgfText *s = pgf_print_expr((PgfExpr) self, NULL, 0, &marshaller);
|
||||
PyObject *str = PyUnicode_FromStringAndSize(s->text, s->size);
|
||||
free(s);
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user