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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user