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 e0b51d5 commit dcfd136Copy full SHA for dcfd136
src/message.cc
@@ -55,6 +55,12 @@ void export_message(py::module_& m) {
55
oss << msgId;
56
return oss.str();
57
})
58
+ .def("__repr__",
59
+ [](const MessageId& msgId) {
60
+ std::ostringstream oss;
61
+ oss << msgId;
62
+ return oss.str();
63
+ })
64
.def("__eq__", &MessageId::operator==)
65
.def("__ne__", &MessageId::operator!=)
66
.def("__le__", &MessageId::operator<=)
0 commit comments