[py] take a copy for the last source block when iterating
authorPaul Brossier <piem@piem.org>
Sun, 23 Dec 2018 04:46:47 +0000 (05:46 +0100)
committerPaul Brossier <piem@piem.org>
Sun, 23 Dec 2018 04:46:47 +0000 (05:46 +0100)
commit966c65065c439fbc725650df96603086f346530d
tree3804b8e31045f78d9a0702a05ae09aa30d3efe70
parent79dc9adb6a541b1929227ded5d53730686fbc3d6
[py] take a copy for the last source block when iterating

Appears to be the simplest solution to prevent resizing internal objects.
See also 8e76c71.
python/ext/py-source.c