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

2010-04-04 Thread Christopher Bruns
On Sat, Apr 3, 2010 at 11:53 AM, troy d. straszheim wrote: > BOOST_PYTHON_MODULE(mod) > { >  def("sayhello", as( &sayhello )); >  //  arg converter       ^ > }; > > The as<> might need some clarification Thanks Troy for the helpful tip. I'm still confused by the "as<>" symbol. I

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

2010-04-04 Thread Christopher Bruns
On Sat, Apr 3, 2010 at 8:54 PM, Ralf W. Grosse-Kunstleve wrote: >> // C++ API >> struct Foo { >>     Foo(ostream& os); >> }; >> >> # desired python usage >> foo = Foo(streambuf(sys.stdout)) > > Did you already try the usual > >  def(init((arg("os" Yes. Well pretty close. Py++ code generator

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

2010-04-04 Thread troy d. straszheim
Christopher Bruns wrote: On Sat, Apr 3, 2010 at 11:53 AM, troy d. straszheim wrote: BOOST_PYTHON_MODULE(mod) { def("sayhello", as( &sayhello )); // arg converter ^ }; The as<> might need some clarification Thanks Troy for the helpful tip. I'm still confused by the "

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

2010-04-04 Thread Ravi
Hi Troy, On Sunday 04 April 2010 16:16:46 troy d. straszheim wrote: > The boost.python code behind this is > in a separate repository, here: > >git://gitorious.org/~straszheim/boost/straszheims-python.git > > The code has diverged quite a bit from trunk boost.python by now. > I was only pl

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

2010-04-04 Thread troy d. straszheim
Ravi wrote: Hi Troy, On Sunday 04 April 2010 16:16:46 troy d. straszheim wrote: The boost.python code behind this is in a separate repository, here: git://gitorious.org/~straszheim/boost/straszheims-python.git The code has diverged quite a bit from trunk boost.python by now. I was only p

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

2010-04-04 Thread Roman Yakovenko
On Mon, Apr 5, 2010 at 2:29 AM, troy d. straszheim > - Get all that implemented separate from boost trunk, beat on it at length, > including having "power users" actually try it with their production apps: >  py++, TnFOX, my physics stuff, etc. I don't have a lot of free time these days, neverthel