Boost C++ Libraries: Ticket #918: __doc__ strings https://svn.boost.org/trac10/ticket/918 <p> For most Python modules and packages html documentation can be generated automatically by a tool that is included in python 2.1 . Being able to set the docstring would be a step in the right direction to make boost.python compatible with pydoc.py . </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/918 Trac 1.4.3 blais Sat, 22 Sep 2001 00:20:35 GMT <link>https://svn.boost.org/trac10/ticket/918#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/918#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=10996 I am already able to set the docstring with the following bit of code in the module initialization: module.add( boost::python::make_ref( help() ), "__doc__"); where help() is a function that returns a string. Is there a way to set docstrings of functions though? </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>david_abrahams</dc:creator> <pubDate>Sat, 22 Sep 2001 17:45:39 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/918#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/918#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=52572 At present, I don't think there is. You would need to modify all of Boost.Python's function classes to hold a doc string, and modify all of the def() functions to accept an optional doc string. I started this project, but realized that I was crazy after having stayed up for 36 hours straight working on Thursday and Friday. If you're interested in the broken state of the source, it's attached here. If you get it to work, please submit a patch for the completed code. Thanks, Dave </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Dave Abrahams</dc:creator> <pubDate>Tue, 03 Jul 2007 14:31:13 GMT</pubDate> <title>owner, status, description changed; severity set https://svn.boost.org/trac10/ticket/918#comment:3 https://svn.boost.org/trac10/ticket/918#comment:3 <ul> <li><strong>owner</strong> changed from <span class="trac-author">david_abrahams</span> to <span class="trac-author">Dave Abrahams</span> </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">new</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/918?action=diff&amp;version=3">diff</a>) </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> Ticket Dave Abrahams Tue, 03 Jul 2007 14:50:17 GMT status, reporter, description, version changed; milestone set https://svn.boost.org/trac10/ticket/918#comment:4 https://svn.boost.org/trac10/ticket/918#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>reporter</strong> changed from <span class="trac-author">ericvrp</span> to <span class="trac-author">ericvrp@…</span> </li> <li><strong>description</strong> modified (<a href="/trac10/ticket/918?action=diff&amp;version=4">diff</a>) </li> <li><strong>version</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">release 1.34.0</span> </li> <li><strong>milestone</strong> → <span class="trac-field-new">Boost 1.35.0</span> </li> </ul> Ticket Dave Abrahams Tue, 03 Jul 2007 14:51:31 GMT attachment set https://svn.boost.org/trac10/ticket/918 https://svn.boost.org/trac10/ticket/918 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">function-docstrings.tgz</span> </li> </ul> <p> Partially-completed work on function docstrings </p> Ticket Dave Abrahams Tue, 03 Jul 2007 14:52:21 GMT severity changed https://svn.boost.org/trac10/ticket/918#comment:5 https://svn.boost.org/trac10/ticket/918#comment:5 <ul> <li><strong>severity</strong> <span class="trac-field-old">Showstopper</span> → <span class="trac-field-new">Problem</span> </li> </ul> <p> I think now that we have Boost.Parameter this job could become much easier. </p> Ticket Dave Abrahams Thu, 11 Jun 2009 20:56:26 GMT status, resolution changed; cc set https://svn.boost.org/trac10/ticket/918#comment:6 https://svn.boost.org/trac10/ticket/918#comment:6 <ul> <li><strong>cc</strong> <span class="trac-author">ericvrp@…</span> added </li> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Sorry it's been so long, but I'm confused about exactly what's missing here. It looks to me like the def() functions already support supplying a docstring. If there's still a real problem, please reopen this bug. In the meantime, I'm closing it. </p> Ticket