Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #76866
| References | <ca0167cc-49d3-4e58-9fc0-e80550ee2bcf@googlegroups.com> |
|---|---|
| Date | 2014-08-23 23:19 +1000 |
| Subject | Re: Simple question |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13340.1408800005.18130.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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