Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed5.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.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'int': 0.05; '>>>>': 0.09; 'bool': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'better:': 0.16; 'from:addr:acm.org': 0.16; 'received:198.144': 0.16; 'subject:() ': 0.16; 'subject:function': 0.16; 'awesome': 0.19; 'keyword': 0.19; 'language': 0.20; 'subject:code': 0.23; 'chris': 0.27; 'to:addr:python-list': 0.32; 'received:198': 0.33; 'header:X -Complaints-To:1': 0.34; 'file': 0.35; 'print': 0.35; 'header :User-Agent:1': 0.35; '"",': 0.35; 'assignment': 0.35; 'think': 0.36; 'charset:us-ascii': 0.36; 'either': 0.37; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'header:Mime-Version:1': 0.39; 'header:Received:5': 0.40; 'allows': 0.40; 'difference.': 0.84; 'python2.7': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Ned Deily Subject: Re: Equivalent code to the bool() built-in function Date: Sun, 17 Apr 2011 21:40:48 -0700 References: <4da9fb0b$0$13696$426a74cc@news.free.fr> <87k4etho6e.fsf@benfinney.id.au> <4DAB97FD.20103@ieee.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: baybryj.net User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) 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: 19 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1303101665 news.xs4all.nl 81478 [::ffff:82.94.164.166]:44371 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3455 Chris Angelico: > Dave Angel: > >>>> bool = int > Any language that allows you to do this is either awesome or > terrifying. Come to think of it, there's not a lot of difference. Even better: $ python2.7 -c 'False = True; print False' True Alas: $ python3 -c 'False = True; print(False)' File "", line 1 SyntaxError: assignment to keyword -- Ned Deily, nad@acm.org