Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'comma': 0.16; 'iterable': 0.16; 'message- id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'tuple': 0.16; 'subject:python': 0.16; '>>>': 0.22; 'print': 0.22; 'url:home': 0.24; 'mon,': 0.24; 'header:X-Complaints-To:1': 0.27; 'consisting': 0.31; 'sep': 0.31; 'subject:end': 0.31; '+0200,': 0.36; 'charset:us-ascii': 0.36; 'received:76': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'above,': 0.60; 'mentioned': 0.61; 'first': 0.61; 'back': 0.62; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: semicolon at end of python's statements Date: Mon, 02 Sep 2013 17:24:31 -0400 Organization: IISS Elusive Unicorn References: <7wob8gywds.fsf@benfinney.id.au> <52213435$0$6599$c3e8da3$5496439d@news.astraweb.com> <522446ae$0$2743$c3e8da3$76491128@news.astraweb.com> <52245E2F.4020909@rece.vub.ac.be> <52246BAD.9050403@gmail.com> <52246F4F.7080108@rece.vub.ac.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-76-249-24-149.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES 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: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1378157084 news.xs4all.nl 15910 [2001:888:2000:d::a6]:51550 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:53529 On Mon, 02 Sep 2013 19:44:33 +0200, "albert visser" declaimed the following: >Coming back to my first association mentioned above, why not use a comma? > >for in , : > > Because the comma turns that into a tuple consisting of your iterable and your condition... >>> for i in 1, 3, 5, 4: ... print i ... 1 3 5 4 >>> >>> x = 1 >>> i = 3 >>> for i in xrange(3), x>> -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/