[C++-sig] [boost.python] How can I wrap operator==?

2010-01-10 Thread blp330
Hi, I want to wrap operator== for my object, Py++ generates that: Document_exposer.def( bp::self != bp::self); Document_exposer.def( bp::self == bp::self ); But I want to do something more, so I try to wrap it with: Document_exposer.def( bp::self != bp::sel

Re: [C++-sig] Exposing C++ data with Boost.Python

2010-01-10 Thread Stefan Seefeld
On 01/10/2010 12:36 PM, devin kelly wrote: So I have to make something to do this conversion. This is where I'm stuck now, I think I have to do something like this BOOST_PYTHON_MODULE(vector_indexing_suite_ext){ boost::python::class_ >("PyVec") .def(boost::python::vector_index

Re: [C++-sig] Exposing C++ data with Boost.Python

2010-01-10 Thread devin kelly
Well what I really to do is turn an STL vector into and python list. I want to do this in a separate script, so I don't think eval is right for me. I just started with an int because that's easier. I've gotten that part too, my code looks like this: int main(){ int five_squared=0;

Re: [C++-sig] boost python calling conventions support patch submission (__stdcall, __cdecl, __fastcall)

2010-01-10 Thread Ravi
On Tuesday 05 January 2010 12:26:27 Nicolas Lelong wrote: > Is this mailing list the best route to submit this patch, what more work > should be done to get it accepted into trunk ? Please file a trac ticket at svn.boost.org so that this does not get lost. Ravi _