def chunks_of(it, n): return takewhile(len, imap(list, imap(islice, repeat(it), repeat(n))))
I've not paid much attention yet to the license scheme, but if it's friendly to be used on commercial projects, I might take the plunge.
I've not paid much attention yet to the license scheme, but if it's friendly to be used on commercial projects, I might take the plunge.