]> jfr.im git - yt-dlp.git/commit
[utils] Improve `LazyList`
authorpukkandan <redacted>
Sat, 12 Jun 2021 15:14:30 +0000 (20:44 +0530)
committerpukkandan <redacted>
Sat, 12 Jun 2021 22:15:53 +0000 (03:45 +0530)
commit28419ca2c84de90acbfdb769d1a38440d93bd9c5
tree64aaf446dedcc00feaa90c2cfaa5601e4fa00279
parent8ba87148802843c6502f7ffc48e574a2eb0049d2
[utils] Improve `LazyList`
* Add `repr` and `str` that mimics `list`
* Add `reversed`. Unlike `[::-1]`, reversed does not exhaust the iterable and modifies the `LazyList` in-place
* Add tests
test/test_utils.py
yt_dlp/utils.py