2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-30 08:02:38 +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

@@ -279,7 +279,7 @@ namespace objects
}
class_base::class_base(
char const* name, std::size_t num_types, class_id const* const types)
char const* name, std::size_t num_types, class_id const* const types, char const* doc)
: object(new_class(name, num_types, types))
{
// Insert the new class object in the registry
@@ -288,6 +288,9 @@ namespace objects
// Class object is leaked, for now
converters.class_object = (PyTypeObject*)incref(this->ptr());
if (doc)
this->attr("__doc__") = doc;
}
extern "C"