On Thu, Sep 20, 2012 at 10:32 AM, Robert Bradshaw <rober...
> A cdef class is more lightweight,
Then that's the way to go, unless there is real reason for it to be a
> but requires an explicit class for
> every set of names you want.
which namedtuple requires as well, you'd still create a specific
namedtuple class for each struct you wanted to wrap.
> (It also has the advantage of storing
> members as C values, if you intend to use them a lot from your Cython
makes sense -- and it's mutable, which more closely follows the
use-cases of C structs.
namedtuples area also sequences, but I suppose you could add that to
your cdef class if you wanted to.
Thanks -- I see now why this hasn't been done -- really no point.
Christopher Barker, Ph.D.
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