Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.python Subject: Re: Is there a reason zip() wipes out data? Date: Sun, 08 May 2016 23:06:06 -0700 Organization: A noiseless patient Spider Lines: 5 Message-ID: <87twi76a0h.fsf@jester.gateway.pace.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="6f8cc70e6892455e89d230a40ec2704b"; logging-data="4716"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18lw+LTBcJKA+ghYvYGZI4A" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:XqwvkHgl3JJrec5FbAQ3wvIJSmE= sha1:s3+gZpTf9SVpTF0vlEthY9//Z9I= Xref: csiph.com comp.lang.python:108415 DFS writes: > Edit: I see they addressed this in 3.5 (maybe earlier), with an option: > "itertools.zip_longest(*iterables, fillvalue=None) This is available in 2.7 as itertools.izip_longest