blist icon indicating copy to clipboard operation
blist copied to clipboard

Python 3.7: Keyview iteration raises a StopIteration RuntimeError

Open s-d-penning opened this issue 6 years ago • 2 comments

I am using version 1.3.6 and under Python 3.6 I can use a for loop to iterate over the KeysView. When I change to Python 3.7 I encounter a 'generator raised StopIteration' RuntimeError at the end of the iteration.

PEP 479 -- Change StopIteration handling inside generators

s-d-penning avatar Feb 04 '19 00:02 s-d-penning

I'm not sure if you're still facing this issue, but we're switching to sortedcontainers because of this issue. It should be a (mostly) drop in fix.

elihunter173 avatar Dec 21 '19 01:12 elihunter173

This is solved for the conda-forge packaging effort with patch 3 in the feedstock repo.

h-vetinari avatar Oct 13 '20 15:10 h-vetinari