Boost C++ Libraries: Ticket #7614: duplicate dosctring is generated for pure virtual methods https://svn.boost.org/trac10/ticket/7614 <p> When defining a method through "def" and using "pure_virtual" (see below) the given docstring is duplicated in the result python definition. </p> <p> C++ class with pure-virtual method: =================================== class IOperation { public: </p> <blockquote> <p> virtual string <a class="missing wiki">AsString</a>() = 0; </p> </blockquote> <p> } </p> <p> The wrapper to expose it to Python: =================================== class_&lt;IOperation, boost::noncopyable, boost::shared_ptr&lt;IOperation&gt; &gt;("IOperation", </p> <blockquote> <p> "docstring for class", no_init) </p> </blockquote> <blockquote> <p> .def("<a class="missing wiki">AsString</a>", </p> <blockquote> <p> pure_virtual(&amp;IOperation::<a class="missing wiki">AsString</a>), "docstring for method <a class="missing wiki">AsString</a>") </p> </blockquote> </blockquote> <p> ; </p> <p> Result python class definition: =============================== class IOperation(instance): </p> <blockquote> <p> """ docstring for class """ </p> </blockquote> <blockquote> <p> def <a class="missing wiki">AsString</a>(self): </p> <blockquote> <p> """ docstring </p> </blockquote> </blockquote> <p> </p> <blockquote> <blockquote> <p> docstring """ pass </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7614 Trac 1.4.3