[Cython] autodoc function/method signatures

Dag Sverre Seljebotn dagss at student.matnat.uio.no
Tue Sep 9 00:06:00 CEST 2008


Help for Lisandro:

Use Interpreter.py (which calls get...value in the right way). Yes, no way for you to know (in fact I wrote it in summer and never told anyone about it...).

If I understand correctly, the context is only used by the parser (it holds symbols defined by DEF I think, but those are expanded during parsing and so there are no such symbols left when you get to it). Anyway it sets up and passes an empty context.

Dag Sverre Seljebotn
-----Original Message-----
From: "Lisandro Dalcin" <dalcinl at gmail.com>
Date: Monday, Sep 8, 2008 7:11 pm
Subject: Re: [Cython] autodoc function/method signatures
To: cython-dev at codespeak.netReply-To: cython-dev at codespeak.net

On Mon, Sep 8, 2008 at 1:46 PM, Robert Bradshaw
><robertwb at math.washington.edu> wrote:
>>> Additionally, for 'def' functions, I have no idea how to provide a
>>> good 'return-type'.
>>
>> Not sure I'm understanding your question... for def functions the
>> return type is always object, which is implied (i.e. one doesn't have
>> to explicitly write "object").
>
>Well, I believe saying a function returns 'object' is equivalent to
>say nothing :-). Perhaps this should wait until functions annotations
>are supported.
>
>>> We should handle default aguments; I'm currently using
>>> 'arg.default.compile_time_value(None)' (I'm passing 'None' to the call
>>> because not sure at this point what to pass).  If this fails, I just
>>> use '<???>'.
>>
>> That sounds like a good first pass to me. I think a context object
>> goes here, right?
>
>Yes, but I'm not sure where to get it.  Dag, please help me!!
>
>
>
>> - Robert
>> _______________________________________________
>> Cython-dev mailing list
>> Cython-dev at codespeak.net
>> http://codespeak.net/mailman/listinfo/cython-dev
>>
>
>
>
>-- 
>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
>Cython-dev at codespeak.net
>http://codespeak.net/mailman/listinfo/cython-dev
>



More information about the Cython-dev mailing list