[Numpy-discussion] restricting object arrays to a single Python type
scopatz at gmail.com
Tue Jul 16 22:15:03 EDT 2013
Let's definitely take this off (this) list. The discussion could get
On Tue, Jul 16, 2013 at 7:15 PM, Geoffrey Irving <irving at naml.us> wrote:
> On Tue, Jul 16, 2013 at 4:51 PM, Anthony Scopatz <scopatz at gmail.com>
> > Hi Geoffrey,
> > Not to toot my own horn here too much, but you really should have a look
> > xdress (http://xdress.org/ and https://github.com/xdress/xdress).
> > will generate a wrapper of the Force class for you and then also create a
> > custom numpy dtype for this class. In this way, you could get exactly
> > you want.
> Unfortunately it's unlikely to work out of the box, since it uses
> gccxml which appears to still be based on gcc 4.2. All of our code is
> C++11, and we need to preserve portability to horrible places like
> Visual Studio (yes, these two constraints are just barely compatible
> at the moment).
> > If you run into any trouble, let me know and I'll be sure to help you
> > This is the kind of thing that xdress is supposed to do so bugs here are
> > big priority for me personally =)
> We're currently using a custom Python binding layer which I wrote a
> while ago after getting fed up with boost::python. Our system is
> extremely lightweight but also limited, and in particular is missing a
> few key features like automatic support for named and default
> arguments (since these can't be introspected inside C++). It'd be
> great to chat more about our two feature sets and whether there are
> opportunities for collaboration and/or merging. I'm not sure if this
> list is a good place for that discussion, so we could optionally take
> it off list or to skype if you're up for that (send me an email
> directly if so).
> Here are links to our system, which unfortunately is undocumented at the
> # Unit test for wrapping a class
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion