[C++-sig] Help needed with simple boost.python exception handler

2010-07-22 Thread David Aldrich
Hi I want to add a simple exception handler to my boost.python application. I want it to print a simple message to the console, indicating the nature of the error. I have seen: try { ... } catch ( error_already_set ) { PyErr_Print(); } But is there a better solution using a boost.pytho

Re: [C++-sig] Need help with simple boost embedded python program

2010-07-22 Thread David Aldrich
I'm new to boost.python so am just a beginner. But I built boost.python with bjam and then built my C++ application with MSVC 2008 (not bjam). Worked fine. David From: cplusplus-sig-bounces+david.aldrich=eu.nec@python.org [mailto:cplusplus-sig-bounces+david.aldrich=eu.nec@python.org] On

Re: [C++-sig] Need help with simple boost embedded python program

2010-07-22 Thread Thomas Berg
On Thu, Jul 22, 2010 at 3:02 AM, Kiramin (Subscriptions) wrote: > I can't seem to get this to work: > This little program just embeds python, creates a module using boost, and > attempts to add it to the list of built-in modules. > //--- > #inclu