Take the first n items of an iterator

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Sun Jan 4 05:55:17 EST 2009


I thought there was an iterator in itertools for taking the first n items 
of an iterator, then halting, but I can't find it. Did I imagine such a 
tool, or am I missing something? 


-- 
Steven



More information about the Python-list mailing list