Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2.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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'true,': 0.05; 'false,': 0.09; 'false.': 0.09; 'subject:question': 0.10; 'cc:addr:python- list': 0.11; 'python': 0.11; 'changes': 0.15; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'versions': 0.24; 'cc:2**0': 0.24; 'header :In-Reply-To:1': 0.27; 'point': 0.28; "doesn't": 0.30; 'newer': 0.30; 'message-id:@mail.gmail.com': 0.30; 'themselves': 0.32; 'another': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'false': 0.36; 'subject:Simple': 0.36; 'pm,': 0.38; 'explain': 0.39; 'first': 0.61; 'fortunately,': 0.84; '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=HPhWG+4kxquW1MPL5BIHmjmGaJjNXv0UbP1AH2uL65I=; b=oXGUDGN5CQgcKTVAk6PgO5yKzePgIvJ0pBRPQFnUDoA55db7wc0lVp5MaeU8GKsjCU TszbhrJQj0rMpmE/nd6AIpkAURyk/9tuu1L4vEyash6J3U7YrI8e9zSVt1gaYHrIlzxN pZSi/sEbxvwwN6Fz3owmC0fIHB4ydGe0OCLclN1Gy7uQEbxdxinScvIIecc+1dY//7U5 bGb55/yp137Wl1DJkwgdx4NKY63CiT6Vx6BBjMob6jMoGXsUnHZ++NBQJS4Q+0x8eISE tXUmDQ/nM/HIZv4FOvWEsLevqW1KzB84VjDCD2hHWiYIQC7ChCG+bPyNibMO0DmgWSlA ZlzQ== MIME-Version: 1.0 X-Received: by 10.50.66.197 with SMTP id h5mr4657300igt.34.1408799997183; Sat, 23 Aug 2014 06:19:57 -0700 (PDT) In-Reply-To: References: Date: Sat, 23 Aug 2014 23:19:57 +1000 Subject: Re: Simple question 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408800005 news.xs4all.nl 2900 [2001:888:2000:d::a6]:51143 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76866 On Sat, Aug 23, 2014 at 11:10 PM, wrote: > Can some one explain why this happens: > True, False = False, True > print True, False > False True Well, the first line changes the meanings of the names "True" and "False", but doesn't change the things they point to. Those things describe themselves the same way. Here's another thing you can do that will look the same: a, b = False, True print a, b False True Fortunately, newer versions of Python don't let you reassign True and False. ChrisA