Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.dougwise.org!gegeweb.org!news.snarked.org!news-xfer.nntp.sonic.net!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail From: Ben Finney Newsgroups: comp.lang.python Subject: Re: Equivalent code to the bool() built-in function References: <4da9fb0b$0$13696$426a74cc@news.free.fr> X-Public-Key-ID: 0xAC128405 X-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06 AC12 8405 X-Public-Key-URL: http://www.benfinney.id.au/contact/bfinney-pubkey.asc X-Post-From: Ben Finney Date: Sun, 17 Apr 2011 07:13:28 +1000 Message-ID: <87oc45hpc7.fsf@benfinney.id.au> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:g/K8TpnS0OPgxHg5iA+EHYH+JzQ= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Lines: 15 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: afb73556.news.astraweb.com X-Trace: DXC=N1SCWADS9j3 writes: > Is the bool_equivalent() function really equivalent to the bool() > built-in function ? The ‘bool’ built-in is not a function. >>> type(bool) -- \ “Generally speaking, the errors in religion are dangerous; | `\ those in philosophy only ridiculous.” —David Hume, _A Treatise | _o__) of Human Nature_, 1739 | Ben Finney