Call it.Prev() without the GIL
This commit is contained in:
parent
ccfa2b522e
commit
c7d192128b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue