This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients christian.heimes, georg.brandl, thomaslee
Date 2008-01-12.11:15:17
SpamBayes Score 0.00042300634
Marked as misclassified No
Message-id <1200136518.91.0.386285748588.issue1810@psf.upfronthosting.co.za>
In-reply-to
Content
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;
}
History
Date User Action Args
2008-01-12 11:15:19georg.brandlsetspambayes_score: 0.000423006 -> 0.00042300634
recipients: + georg.brandl, christian.heimes, thomaslee
2008-01-12 11:15:18georg.brandlsetspambayes_score: 0.000423006 -> 0.000423006
messageid: <1200136518.91.0.386285748588.issue1810@psf.upfronthosting.co.za>
2008-01-12 11:15:17georg.brandllinkissue1810 messages
2008-01-12 11:15:17georg.brandlcreate