On Thu, Sep 20, 2012 at 9:55 AM, Chris Barker <chris.bar...@noaa.gov> wrote:A cdef class is more lightweight, but requires an explicit class for
> I'm thinking of using namedtuples in Cython -- it seems a reasonable
> way to wrap a c struct, and, at least in pure python, lighter weight
> than a class.
> If I'm going to do that, is seems I might as well use the C-API when
> Which I suppose means I need to create a nametuple class with the
> But is there any point in this anyway -- is, in fact, a cdef class
every set of names you want. (It also has the advantage of storing
members as C values, if you intend to use them a lot from your Cython
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.