mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 17:12:22 +00:00
Concatentation subsequent function docstrings rather than replace the original.
[SVN r27332]
This commit is contained in:
@@ -472,7 +472,12 @@ void function::add_to_namespace(
|
||||
if (doc != 0)
|
||||
{
|
||||
object attr_copy(attribute);
|
||||
attr_copy.attr("__doc__") = doc;
|
||||
if (PyObject_HasAttrString(attr_copy.ptr(), "__doc__") && attr_copy.attr("__doc__")) {
|
||||
attr_copy.attr("__doc__") += "\n\n";
|
||||
attr_copy.attr("__doc__") += doc;
|
||||
}
|
||||
else
|
||||
attr_copy.attr("__doc__") = doc;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user