This is used in production code: http://cctbx.svn.sourceforge.net/viewvc/cctbx/trunk/boost_adaptbx/python_streambuf.h?view=markup
See also: http://cctbx.svn.sourceforge.net/viewvc/cctbx/trunk/boost_adaptbx/tests/ python_streambuf_test_ext.cpp tst_python_streambuf.py tst_stderr_stdout.py tst_stdin.py tst_stdout.py The easiest way to get everything is to download from http://cci.lbl.gov/boostbx_bundles/current/ and run e.g. perl boostbx_bundle.selfx Ideally this would be part of Boost.Python proper, as built-in converters for std::istream and std::ostream, but this would require a volunteer. Ralf _______________________________________________ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig