From 220793c369317afb86c85b9ec4e5f576e384fe52 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Mon, 4 Jul 2011 21:02:15 +0000 Subject: [PATCH] exposed comparison operators on torrent_handle to python --- ChangeLog | 1 + bindings/python/src/torrent_handle.cpp | 3 +++ 2 files changed, 4 insertions(+) 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)