Re: [C++-sig] how do i interrupt a C++ extension?

2010-02-06 Thread John Reid
Amos Anderson wrote: Thanks for the responses! It sounds like there's just no way to send a signal to C++. Moving loops from C++ to Python around is not really a solution for us because we need to be moving them in the other direction if they're to be moved at all. This is molecular simulation

Re: [C++-sig] how do i interrupt a C++ extension?

2010-02-06 Thread troy d. straszheim
Amos Anderson wrote: Thanks for the responses! It sounds like there's just no way to send a signal to C++. Please watch the top-posting... Moving loops from C++ to Python around is not really a solution for us because we need to be moving them in the other direction if they're to be moved at

Re: [C++-sig] how do i interrupt a C++ extension?

2010-02-06 Thread Amos Anderson
Thanks for the responses! It sounds like there's just no way to send a signal to C++. Moving loops from C++ to Python around is not really a solution for us because we need to be moving them in the other direction if they're to be moved at all. This is molecular simulation code, so some of the ext

Re: [C++-sig] Getting the wrapped C++ instance from a boost::python::object

2010-02-06 Thread Murray Cumming
On Sat, 2010-02-06 at 12:54 -0500, Stefan Seefeld wrote: > On 02/06/2010 08:39 AM, Murray Cumming wrote: > > If I have a boost::python::object that I know contains a PyObject that > > wraps an instance of my C++ class, MyClass, can I get a pointer to that > > MyClass instance, so I can call its C++

Re: [C++-sig] Getting the wrapped C++ instance from a boost::python::object

2010-02-06 Thread Stefan Seefeld
On 02/06/2010 08:39 AM, Murray Cumming wrote: If I have a boost::python::object that I know contains a PyObject that wraps an instance of my C++ class, MyClass, can I get a pointer to that MyClass instance, so I can call its C++ methods? http://www.boost.org/doc/libs/1_41_0/libs/python/doc/

[C++-sig] Getting the wrapped C++ instance from a boost::python::object

2010-02-06 Thread Murray Cumming
If I have a boost::python::object that I know contains a PyObject that wraps an instance of my C++ class, MyClass, can I get a pointer to that MyClass instance, so I can call its C++ methods? -- murr...@murrayc.com www.murrayc.com www.openismus.com ___