On Fri, Oct 30, 2009 at 11:40 AM, Dag Sverre Seljebotn
<[email protected]> wrote:
> Chris Colbert wrote:
>> Ok, it turns out this is possible using numpy.add_docstring()
>>
>> the caveat is that there must be no previous docstring in the object.
>
> Could it be that add_docstring simply creates a wrapper object?

Not at all. 'add_docstring()' is a vile hack implemented in C land
that set the char* ml_doc slot in PyMethodDef entries... Moreover,
add_docstring() causes a reference leak of the string object.



-- 
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

Reply via email to