[C++-sig] Re: Contributing an embedding example (after a bugfix ;)

David Abrahams dave at boost-consulting.com
Mon Nov 25 19:19:19 CET 2002


Dirk Gerrits <dirk at gerrits.homeip.net> writes:

> I attached the promised cleanup of my little example. I made it a bit
> more consistent with the documentation code and changed the boring f()
> into hello(). :)
>
> Feel free to use my example in the documentation or
> /libs/python/example or whatever. I haven't yet written a Jamfile
> though. I don't have much experience with those.

I had to modify your test quite a bit, but I checked it into
libs/python/test/embedding.cpp, and the Jamfile now runs it. Thanks
for your contribution!

Unfortunately, I couldn't keep the "print" statements. Something about
running the test under NTEmacs (my usual setup) was suppressing all of
Python's output to stdout.

If you could write up a short HTML page in the documentation
describing what people need to know in order to embed Boost.Python
extensions, that would be hugely appreciated as well.

Thanks again,
-- 
                       David Abrahams
   dave at boost-consulting.com * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution





More information about the Cplusplus-sig mailing list