[C++-sig] building boost python --threading mystery ?

2010-10-15 Thread Avi Bahra
Trying to understand --threading option when applied to building boost python On Linux with gcc it appears to have no effect. bjam toolset=gcc --with-python link=shared variant=debug --threading=single Building the Boost C++ Libraries. ...patience... ...patience... ...found 1489 targets... ...upd

[C++-sig] Docstrings question

2010-10-15 Thread Michael Wild
Hi all I'm fairly new to Boost.Python and currently I'm looking for a convenient way of adding docstrings to overloaded operators, e.g: class A; class B A operator+(A const&, A const&); B operator+(B const&, B const&); BOOST_PYTHON_MODULE(foo) { bp::class_("A") .def(self + self) //< How to a