mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Restore main trunk to health
[SVN r15359]
This commit is contained in:
@@ -36,24 +36,23 @@ BOOST_PYTHON_MODULE_INIT(docstring_ext)
|
||||
"A simple test module for documentation strings\n"
|
||||
"Exercised by docstring.py"
|
||||
;
|
||||
|
||||
|
||||
class_<X>("X",
|
||||
"A simple class wrapper around a C++ int\n"
|
||||
"includes some error-checking"
|
||||
|
||||
, init<int>(
|
||||
"this is the __init__ function\n"
|
||||
"its documentation has two lines."
|
||||
)
|
||||
|
||||
, args<int>(),
|
||||
"this is the __init__ function\n"
|
||||
"its documentation has two lines."
|
||||
|
||||
)
|
||||
.def("value", &X::value,
|
||||
"gets the value of the object")
|
||||
;
|
||||
|
||||
|
||||
def("create", create, return_value_policy<manage_new_object>(),
|
||||
"creates a new X object");
|
||||
|
||||
|
||||
def("fact", fact, "compute the factorial");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user