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" <[EMAIL PROTECTED]> Date: Monday, Sep 8, 2008 7:11 pm Subject: Re: [Cython] autodoc function/method signatures To: [EMAIL PROTECTED]: [email protected] On Mon, Sep 8, 2008 at 1:46 PM, Robert Bradshaw ><[EMAIL PROTECTED]> 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 >> [email protected] >> 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 >[email protected] >http://codespeak.net/mailman/listinfo/cython-dev >
_______________________________________________ Cython-dev mailing list [email protected] http://codespeak.net/mailman/listinfo/cython-dev
