comparison mercurial/narrowspec.py @ 43426:6f9f15a476a4

rust-cpython: remove useless Option<$leaked> from py_shared_iterator We no longer need to carefully drop the iterator when it's consumed. Mutation is allowed even if the iterator exists. There's a minor behavior change: next(iter) may return/raise something other than StopIteration if it's called after the iterator has been fully consumed, and if the Rust object isn't a FusedIterator.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 12 Oct 2019 20:48:30 +0900
parents 8ff1ecfadcd1
children 1922694d638f
comparison
equal deleted inserted replaced
43425:ed50f2c31a4c 43426:6f9f15a476a4