Call it.Prev() without the GIL

This commit is contained in:
hofmockel 2014-01-19 13:45:02 +01:00
parent ccfa2b522e
commit c7d192128b

View file

@ -1340,6 +1340,7 @@ cdef class ReversedIterator(object):
raise StopIteration() raise StopIteration()
cdef object ret = self.it.get_ob() cdef object ret = self.it.get_ob()
self.it.ptr.Prev() with nogil:
self.it.ptr.Prev()
check_status(self.it.ptr.status()) check_status(self.it.ptr.status())
return ret return ret