Commit 285bba76 authored by Davis King's avatar Davis King

Fixed dlib.range's iterator interface to work in python 3.

parent eec40e4f
......@@ -189,7 +189,8 @@ void bind_basic_types()
.def_pickle(serialize_pickle<range_type>());
class_<range_iter>("_range_iter")
.def("next", &range_iter::next);
.def("next", &range_iter::next)
.def("__next__", &range_iter::next);
{
typedef std::vector<std::pair<unsigned long, unsigned long> > type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment