mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-20 06:49:25 +00:00
python 2.7 fix
This commit is contained in:
@@ -100,7 +100,7 @@ const int Example2::value2 = 5;
|
||||
void init_ex2(py::module &m) {
|
||||
/* No constructor is explicitly defined below. An exception is raised when
|
||||
trying to construct it directly from Python */
|
||||
py::class_<Example2>(m, "Example2")
|
||||
py::class_<Example2>(m, "Example2", "Example 2 documentation")
|
||||
.def("get_dict", &Example2::get_dict, "Return a Python dictionary")
|
||||
.def("get_dict_2", &Example2::get_dict_2, "Return a C++ dictionary")
|
||||
.def("get_list", &Example2::get_list, "Return a Python list")
|
||||
|
||||
Reference in New Issue
Block a user