17.12. Wrapping an Unbounded Iterator to Restrict Its Output
Credit: Tom Good
17.12.1. Problem
You need to filter the
sequence produced by a potentially unbounded Python 2.2 iterator or
limit the sequence length by a condition.
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.
Start a Free Trial