On Fri, Mar 27, 2009 at 5:14 AM, Stefan Behnel <[email protected]> wrote: > Hoyt Koepke wrote: > >> BTW, this solution: >> >>> You can do <PyObject*>a, so do &(<PyObject*>a) to get a PyObject** >> >> gives me the error message >> >> /home/hoytak/workspace/paramtree/paramtree/paramtree.pyx:648:31: >> Taking address of non-lvalue >> >> Is that a bug? > > Hmm, I don't see an obvious problem with this, so it looks like a bug. > Could you file a bug report with a test case that shows how to reproduce > this? >
But in any case, please DO NOT let code being able to do &(<PyObject*>a). I'm almost sure this will completely confuse the refnanny machinery. -- Lisandro Dalcín --------------- Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC) Instituto de Desarrollo Tecnológico para la Industria Química (INTEC) Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET) PTLC - Güemes 3450, (3000) Santa Fe, Argentina Tel/Fax: +54-(0)342-451.1594 _______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
