The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Robert Bradshaw <rober...@gmail.com>
Date: Thu, 20 Sep 2012 10:32:01 -0700
Local: Thurs, Sep 20 2012 1:32 pm
Subject: Re: [cython-users] namedtuples in Cython?
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 code.) - Robert
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.
| ||||||||||||||