funkyHat / listish

A collection of lazy, repeatably consumable list- & tuple-like objects which wrap any iterator or iterable.
Apache License 2.0
1 stars 3 forks source link

Make slicing as lazy as currently feasible #6

Closed Drakekin closed 7 years ago

Drakekin commented 7 years ago

This PR adds support for lazy extended slicing by identifying slices that have a known length without knowing the length of the iterable they are slicing against and allowing for retrieval, mutation and deletion of those slices, as per the rules of python slicing, without exhausting the full length of the iterator where possible.

funkyHat commented 7 years ago

Somehow this is making py.test eat 4GB of memory on circleci? :/