Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #76866

Re: Simple question

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 <rosuav@gmail.com>
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 <ca0167cc-49d3-4e58-9fc0-e80550ee2bcf@googlegroups.com>
References <ca0167cc-49d3-4e58-9fc0-e80550ee2bcf@googlegroups.com>
Date Sat, 23 Aug 2014 23:19:57 +1000
Subject Re: Simple question
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.13340.1408800005.18130.python-list@python.org> (permalink)
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

Show key headers only | View raw


On Sat, Aug 23, 2014 at 11:10 PM,  <explodeandroid@gmail.com> 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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Simple question explodeandroid@gmail.com - 2014-08-23 06:10 -0700
  Re: Simple question Chris Angelico <rosuav@gmail.com> - 2014-08-23 23:19 +1000
  Re: Simple question Peter Otten <__peter__@web.de> - 2014-08-23 15:26 +0200
  Re: Simple question "ElChino" <elchino@cnn.cn> - 2014-08-23 15:31 +0200
  Re: Simple question John Ladasky <john_ladasky@sbcglobal.net> - 2014-08-23 22:55 -0700
    Re: Simple question Chris Angelico <rosuav@gmail.com> - 2014-08-24 16:22 +1000

csiph-web