2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-23 17:52:17 +00:00

Full docstring support

[SVN r14734]
This commit is contained in:
Dave Abrahams
2002-08-07 23:03:02 +00:00
parent 56e7b2a592
commit bd0257cbe5
11 changed files with 211 additions and 45 deletions

View File

@@ -16,12 +16,14 @@
namespace boost { namespace python { namespace detail {
module_base::module_base(const char* name)
module_base::module_base(char const* name, char const* doc)
: m_module(
allow_null(python::borrowed(
scope().ptr()
)))
{
if (doc != 0)
scope().attr("__doc__") = doc;
}
module_base::~module_base()