Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.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.060 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'subject:while': 0.07; 'looked': 0.15; 'received:74.125.82.44': 0.15; 'received:mail- ww0-f44.google.com': 0.15; '(sorry': 0.16; 'header:In-Reply-To:1': 0.22; 'constant': 0.28; 'actually': 0.32; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'to:addr:python-list': 0.33; 'there': 0.33; 'received:74.125.82': 0.34; 'question': 0.35; 'received:74.125': 0.37; 'received:google.com': 0.37; 'think': 0.38; 'received:192': 0.38; 'should': 0.38; 'received:192.168.1': 0.39; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'here': 0.64 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=2S+WLCBHOoReVCzsBMMkUu2wxvchRBBDw17ssG4Jsac=; b=CH8NiSjv8V/nLnC1ArjMqaLS7tAuobiptxCfkuG8uY6NQSAaMZtCZ5kGCkWLGPCkO5 mLSzahn/FZnmF6hXqRfxYC6cddDmn+6eGD+jLHZXon8fcI5HRnUkYvkr7dhGOJ9t76r3 5VwPfx4SkatMig1C2ZXDEvk/ctTmrkYTJRVK8= Date: Sat, 21 Jan 2012 14:29:12 +0000 From: Andrea Crotti User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: while True or while 1 References: <4F1AC1D4.2080402@gmail.com> In-Reply-To: <4F1AC1D4.2080402@gmail.com> 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.12 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: 5 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1327156157 news.xs4all.nl 6895 [2001:888:2000:d::a6]:58246 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:19189 Actually there was the same question here (sorry should have looked before) http://stackoverflow.com/questions/3815359/while-1-vs-for-whiletrue-why-is-there-a-difference And I think the main reason is that 1 is a constant while True is not such and can be reassigned.