Have some time for more details while waiting for my bus...: - When moving the transform to after AnalyseDeclarations, you must modify funcnode.py_func.doc as well as funcnode.doc for "cpdef" functions.
- Rather than inspecting the syntax tree nodes for the arguments, funcnode.local_scope.arg_entries can be iterated. It contains a quite clean view of the arguments (should lean to fewer special cases in your code). Got to go. Dag Sverre Seljebotn -----Original Message----- From: Dag Sverre Seljebotn <[EMAIL PROTECTED]> Date: Friday, Sep 19, 2008 5:33 pm Subject: Re: [Cython] PATCH: embed signatures To: [EMAIL PROTECTED]: [email protected] Lisandro Dalcin wrote: > On Fri, Sep 19, 2008 at 11:34 AM, Dag Sverre Seljebotn > <[EMAIL PROTECTED]> wrote: > >> >> I didn't close the ticket though as >> >> def f(unsigned short i): pass >> >> ...will get "int" as the description. >> > >> Ups! My fault, I'm working right now in a fix for this.... > >Please have a look at PyrexTypes.py first though, and make sure that you >don't duplicate code -- I think there's already code for making Cython >representations of types. (However you need to move your transform to >after AnalyseDeclarations and inspect funcnode.local_scope.arg_entries >to access the type objects) > >Dag Sverre >_______________________________________________ >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
