[Pyrex] `pass' as name for structure field

Daniele Varrazzo daniele.varrazzo at gmail.com
Mon Oct 16 10:50:32 UTC 2006


> if i can't make changes to mm.h, how could i describe and reference
> the `pass' field of mm structure from pyrex?

I think you can declare:

     cdef extern from "mm.h":
       struct mm:
         char *login
         char *pass "pass_"

and use the alias mm.pass_ in your Pyrex code.

docs are here:
http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/version/Doc/overview.html#CNameSpecs



More information about the Pyrex mailing list