Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.06; 'explicit': 0.07; 'arguments': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'def': 0.12; '(also': 0.16; 'although,': 0.16; 'args:': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'cc:addr:python.org': 0.22; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'wondering': 0.29; 'am,': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'too.': 0.31; 'values.': 0.31; 'received:google.com': 0.35; 'yield': 0.36; 'clear': 0.37; 'more': 0.64; 'smith': 0.68; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=fN2mz5eiAqbKC4o13N/iae2/izAE4WyKHTR6NS6hMoQ=; b=V1x6cdGB4wQO9CmNLYJ/OON/7Mh4EdYase4Hbr+bl0ECN/2T2PvNW7i8hFxLZOCyV9 DU2L4yrRzT6ujr8ayZhBTAc2gy5dFMvhsqvkmk4D11qCkxNNl93hh4dtQThAHp7cbXfF LNlnVOqhHxQ/vfyMx+XShKvsfXqifFka4mYvs0H0oMBrVx9ym/GoQxQOjUBE/PC1mjzC GAwVLiuCtYDehz3hKHR95Krghm87YgqZEm6uh95C8TS69dM8NF3q8K49yijpYLAfYjaL c/we7rBxHPnhZEuDkaYiOHVKvpEwW7UFdAbSENINkee8Fot5/eaidUxaQwkaUr8g/F+e 1kiQ== MIME-Version: 1.0 X-Received: by 10.50.79.135 with SMTP id j7mr12350060igx.14.1417998936471; Sun, 07 Dec 2014 16:35:36 -0800 (PST) In-Reply-To: References: <004e01d01173$e1641c10$a42c5430$@gmail.com> <5484e3d8$0$13013$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 8 Dec 2014 11:35:36 +1100 Subject: Re: Python Iterables struggling using map() built-in From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417998939 news.xs4all.nl 2875 [2001:888:2000:d::a6]:41636 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82087 On Mon, Dec 8, 2014 at 11:27 AM, Roy Smith wrote: > Although, to be honest, I'm wondering if this is more straight-forward > (also not tested): > > def myzip37(*args): > if not args: > return > iters = list(map(iter, args)) Yes, I prefer this too. It's explicit and clear that passing no arguments will yield no values. ChrisA