Re: [C++-sig] Conversion of python files to C++ ostreams

2010-03-30 Thread Michele De Stefano
Christopher, there is a much easier way to treat a FILE* as a C++ stream. The easy way is to use my open source library (mds-utils, http://code.google.com/p/mds-utils/). I have easy ways to do what you want both from C++ (i.e. treating a FILE* as a C++ std::stream) and from Python (treating Pytho

[C++-sig] suppressing BOOST_PYTHON_MODULE

2010-03-30 Thread Nathan Stewart
Can I suppress generation of the BOOST_PYTHON_MODULE while retaining the rest of the functionality the module builder provides? ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: [C++-sig] suppressing BOOST_PYTHON_MODULE

2010-03-30 Thread Stefan Seefeld
On 03/30/2010 10:30 AM, Nathan Stewart wrote: Can I suppress generation of the BOOST_PYTHON_MODULE while retaining the rest of the functionality the module builder provides? I'm not sure what you are referring to by "module builder", but all that can appear inside BOOST_PYTHON_MODULE may also

Re: [C++-sig] Conversion of python files to C++ ostreams

2010-03-30 Thread Ralf W. Grosse-Kunstleve
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_st