diff --git a/ChangeLog b/ChangeLog index cf5d633b4..3a7c58b7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -87,6 +87,7 @@ incoming connection * added more detailed instrumentation of the disk I/O thread + * exposed comparison operators on torrent_handle to python * exposed alert error_codes to python * fixed bug in announce_entry::next_announce_in and min_announce_in * fixed sign issue in set_alert_mask signature diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index dd7ac0a89..ba93f0447 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -284,6 +284,9 @@ void bind_torrent_handle() #define _ allow_threads class_("torrent_handle") + .def(self == self) + .def(self != self) + .def(self < self) .def("get_peer_info", get_peer_info) .def("status", _(&torrent_handle::status), arg("flags") = 0xffffffff) .def("get_download_queue", get_download_queue)