views:

156

answers:

1

Is it possible to interoperate with a C++ iostream and python? I'm using boost-python and want to wrap a function that has istream and ostream as arguments.

A: 

Is http://cci.lbl.gov/cctbx_sources/boost_adaptbx/python_streambuf.h what you are looking for? It comes from the Phenix project.

(license information at http://cci.lbl.gov/cctbx_sources/boost_adaptbx/LICENSE_2_0.txt)

gurney alex