Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'operator': 0.05; 'python?': 0.05; 'subject:Python': 0.06; 'python': 0.08; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'assignments.': 0.16; 'assigns': 0.16; 'evaluates': 0.16; 'cc:addr:python-list': 0.16; 'variable': 0.21; 'cc:2**0': 0.21; 'cc:no real name:2**0': 0.22; 'header:In-Reply- To:1': 0.22; 'received:209.85.214': 0.28; 'message- id:@mail.gmail.com': 0.28; 'expressions': 0.29; 'cc:addr:python.org': 0.30; 'subject:?': 0.31; 'does': 0.32; "what's": 0.33; 'from:charset:iso-8859-1': 0.35; 'unless': 0.37; 'using': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'meaning': 0.40; 'received:209': 0.40; 'url:net': 0.61; 'to:charset:iso-8859-1': 0.82; "doesn't,": 0.84; 'rafael': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=FPLdCR0dQRVwXzFZ4qmaL7KQikkVkVCQGo1Dg7RM/nk=; b=jsqCEQ5Iy4Xfu39GG5uOA/eqa38IEVlS4ojTY6F9SN8OHZ9i0k3KVOAycGMeXJmC34 ilrgRZuQYeh2H1nON18XWvxmBkAiq61TMbY9jTl3/WaPVR4H96V1h6AGrrJWHabqW8NJ WCuyYujzo4Y9daB3Q0zg/LYa2dTYfbY3TcdkA= MIME-Version: 1.0 In-Reply-To: References: Date: Fri, 15 Jul 2011 09:46:52 +0200 Subject: Re: Python ++ Operator? From: =?ISO-8859-1?Q?Bj=F6rn_Lindqvist?= To: =?ISO-8859-1?Q?Rafael_Dur=E1n_Casta=F1eda?= Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1310716016 news.xs4all.nl 23854 [2001:888:2000:d::a6]:38340 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:9519 2011/7/15 Rafael Dur=E1n Casta=F1eda : > What's the meaning of using i++? Even, does exist ++ operator in python? No it doesn't, which is a good thing. Python differentiates between expressions and variable assignments. "i++" in C both assigns the value i + 1 to i AND evaluates to i. Pre and post-increments are almost always confusing unless they are used as the counter-variable inside for-loops. --=20 mvh/best regards Bj=F6rn Lindqvist http://www.footballexperts.net/