On Mon, Jan 21, 2013 at 8:00 PM, Robert Bradshaw <
robe...@gmail.com> wrote:
>> in mind to access those fields at Python level would be to create a class
>> for each one of my struct, then define for each field a get function and a
>> set function.
>>
>> This looks like work that should not have to be done, soo.... Would there be
>> a magical way to get this automatically in Cython ?
> There isn't now, but it'd be really nice.
indeed.
> if I weren't going to write a
> code-generator or modify Cython itself).
I'd probably write a code generator for this -- particularly if you
have more than a couple of these monster structs, and/or they ar under
active development and changing a lot.
It should be pretty straightforward (at least for your specific use),
and would be generally useful.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R
(206) 526-6959 voice
7600 Sand Point Way NE
(206) 526-6329 fax
Seattle, WA 98115
(206) 526-6317 main reception
Chris....@noaa.gov