Introduction19.1. Writing a range-like Function with Float Increments19.2. Building a List from Any Iterable19.3. Generating the Fibonacci Sequence19.4. Unpacking a Few Items in a Multiple Assignment19.5. Automatically Unpacking the Needed Number of Items19.6. Dividing an Iterable into n Slices of Stride n19.7. Looping on a Sequence by Overlapping Windows19.8. Looping Through Multiple Iterables in Parallel19.9. Looping Through the Cross-Product of Multiple Iterables19.10. Reading a Text File by Paragraphs19.11. Reading Lines with Continuation Characters19.12. Iterating on a Stream of Data Blocks as a Stream of Lines19.13. Fetching Large Record Sets from a Database with a
Generator19.14. Merging Sorted Sequences19.15. Generating Permutations, Combinations, and Selections19.16. Generating the Partitions of an Integer19.17. Duplicating an Iterator19.18. Looking Ahead into an Iterator19.19. Simplifying Queue-Consumer Threads19.20. Running an Iterator in Another Thread19.21. Computing a Summary Report with itertools.groupby