Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed5.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.028 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'subject:skip:s 10': 0.05; 'line:': 0.07; 'received:195.186': 0.16; 'received:bluewin.ch': 0.16; 'wrote:': 0.17; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'am,': 0.27; 'to:addr:python-list': 0.33; 'something': 0.35; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'received:ch': 0.69 Date: Sun, 28 Oct 2012 08:12:49 +0100 From: "F.R." User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20120827 Thunderbird/15.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: attaching names to subexpressions References: <508c810f$0$29967$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1351408446 news.xs4all.nl 6952 [2001:888:2000:d::a6]:45916 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:32305 On 10/28/2012 06:57 AM, Devin Jeanpierre wrote: > line = function(x, y, z) > >while line: > > do something with(line) > > line = function(x, y, z) How about: line = True while line: line = function(x, y, z) do something with(line) ? Frederic