> >     def chop(iterable, length=2):
> >         return izip(*(iter(iterable),) * length)
>
> Is this *always* guaranteed by the language to work?

Yes!

Users requested this guarantee, and I agreed.  The docs now explicitly
guarantee this behavior.


Raymond
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to