[issue1810] Partial AST compile() patch
Georg Brandl
report at bugs.python.org
Sat Jan 12 12:15:18 CET 2008
Georg Brandl added the comment:
This is great work!
The problem is that ast2obj_object translates NULL values to Py_None,
but obj2ast_object doesn't translate that back. This definition fixes
your testcase:
static int obj2ast_object(PyObject* obj, PyObject** out, PyArena* arena)
{
if (obj == Py_None)
obj = NULL;
Py_XINCREF(obj);
*out = obj;
return 0;
}
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1810>
__________________________________
More information about the Python-bugs-list
mailing list