X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/07387a96aed5a9b2bdf5d15c2199226207b7f659..813e836067a1aa922c5fb1432300b7e6390ee352:/src/bindings/python/simgrid_python.cpp diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index b8791b02fb..ce60453926 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -251,7 +251,7 @@ PYBIND11_MODULE(simgrid, m) .def( "get", [](Mailbox* self) { - py::object data = pybind11::reinterpret_steal(static_cast(self->get())); + py::object data = pybind11::reinterpret_steal(self->get()); // data.dec_ref(); // FIXME: why does it break python-actor-create? return data; }, @@ -344,7 +344,7 @@ PYBIND11_MODULE(simgrid, m) .def("is_daemon", &Actor::is_daemon, "Returns True if that actor is a daemon and will be terminated automatically when the last non-daemon actor " "terminates.") - .def("join", py::overload_cast(&Actor::join), py::call_guard(), + .def("join", py::overload_cast(&Actor::join, py::const_), py::call_guard(), "Wait for the actor to finish (more info in the C++ documentation).", py::arg("timeout")) .def("kill", &Actor::kill, py::call_guard(), "Kill that actor") .def("kill_all", &Actor::kill_all, py::call_guard(), "Kill all actors but the caller.")