We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76325a commit ff769b6Copy full SHA for ff769b6
src/rehline.cpp
@@ -707,7 +707,7 @@ void rehline_internal(
707
result.dual_objfns.swap(dual_objfns);
708
}
709
710
-PYBIND11_MODULE(rehline, m) {
+PYBIND11_MODULE(_internal, m) {
711
py::class_<OptResult>(m, "rehline_result")
712
.def(py::init<>())
713
.def_readwrite("beta", &OptResult::beta)
@@ -717,6 +717,8 @@ PYBIND11_MODULE(rehline, m) {
717
.def_readwrite("niter", &OptResult::niter)
718
.def_readwrite("dual_objfns", &OptResult::dual_objfns);
719
720
+ // https://hopstorawpointers.blogspot.com/2018/06/pybind11-and-python-sub-modules.html
721
+ m.attr("__name__") = "rehline._internal";
722
m.doc() = "rehline";
723
m.def("rehline_internal", &rehline_internal);
724
0 commit comments