On Sat, Nov 1, 2008 at 4:48 AM, Alan Baljeu <[EMAIL PROTECTED]> wrote: > > It was a personal question. Do you specifically do much wrapping stuff or > not? I'm > trying to gauge your approach compared to how much you do it. I mean, if I > had > to wrap one C++ function I would of course use the Python API. If I had to > grab 2000 > classes, I would look for something else to help. What's the breaking point? > How > quickly does it go for you?
People are obviously going to have different pain points. I use straight boost.python to wrap C++ classes and functions, not any of the wrapper generators like SWIG or Py++. I find that doing things by hand helps me end up with a more "pythonic" wrapper. If I had to deal with a large existing class library, I'd probably go a different route and use a generator. There's an interesting question about whether it's better to use boost.python or SWIG. I've been using boost.python for years, so I have a lot invested in it, but if I were starting from scratch, I might consider using SWIG because it gives you the flexibility to generate wrappers for languages other than Python. an aside: you do not need gcc or cygwin to use boost.python by itself. It works fine with visual studio. -greg _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig