Skip to content Skip to sidebar Skip to footer
Showing posts with the label Boost Python

Run Python In C++

I have an application written in C++ and a testing system (also in C++). Testing system is pretty c… Read more Run Python In C++

How To Override __setattr__ In A Wrapped Class (from C++)?

Using boost::python, I have been able to wrap a class (Node) which has some virtual functions, and … Read more How To Override __setattr__ In A Wrapped Class (from C++)?

How To Write A Wrapper Over Functions And Member Functions That Executes Some Code Before And After The Wrapped Function?

I'm trying to write some wrapper class or function that allows me to execute some code before a… Read more How To Write A Wrapper Over Functions And Member Functions That Executes Some Code Before And After The Wrapped Function?

Python Embedded In Cpp: How To Get Data Back To Cpp

While working on a C++ project, I was looking for a third party library for something that is not m… Read more Python Embedded In Cpp: How To Get Data Back To Cpp

How To Compile Static Library With -fpic From Boost.python

By default, libboostpython.a is compiled without -fPIC. But I have to make a python extension and i… Read more How To Compile Static Library With -fpic From Boost.python

How To Reinitialise An Embedded Python Interpreter?

I'm working on embedding Python in our test suite application. The purpose is to use Python to … Read more How To Reinitialise An Embedded Python Interpreter?

Pass By Reference In Boost::python

Consider something like: struct Parameter { int a; Parameter(){a = 0;} void setA(int ne… Read more Pass By Reference In Boost::python

Create Boost-python Nested Namespace

Using boost python I need create nested namespace. Assume I have following cpp class structure: nam… Read more Create Boost-python Nested Namespace

How To Call Python From A Boost Thread?

I have a Python app that calls a C++ boost python library and it all works. However, I have a callb… Read more How To Call Python From A Boost Thread?

How To Wrap Functions Overloaded By Type?

Suppose there is a class MyArray which implements an array of SomeType. It is written in C++ and wr… Read more How To Wrap Functions Overloaded By Type?

Crash On Call From Boost::python::exec( Anything )

I'm trying to implement some Python stuff into my program and I've decided to use Boost::Py… Read more Crash On Call From Boost::python::exec( Anything )