[Pyrex] `pass' as name for structure field

Zajcev Evgeny zevlg at yandex.ru
Mon Oct 16 11:06:17 UTC 2006


Daniele Varrazzo <daniele.varrazzo at gmail.com> writes:

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

Thanks!  that is exactly what i need, sorry/strange that i missed this
in docs ..

[..]

-- 
lg



More information about the Pyrex mailing list