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


Groups > comp.lang.python > #21630

Re: Style question (Poll)

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <arnodel@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.015
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'received:209.85.160.174': 0.07; 'received:mail-gy0-f174.google.com': 0.07; 'false,': 0.09; 'subject:Poll': 0.16; 'cc:addr:python-list': 0.16; 'subject:question': 0.16; 'wrote:': 0.18; 'to:2**1': 0.21; 'header :In-Reply-To:1': 0.22; 'cc:2**0': 0.26; 'message- id:@mail.gmail.com': 0.29; 'true,': 0.29; 'cc:addr:python.org': 0.29; 'object.': 0.30; 'rarely': 0.30; "i've": 0.32; 'objects': 0.32; 'none': 0.35; 'something': 0.35; 'received:209.85.160': 0.36; 'received:google.com': 0.37; 'received:209.85': 0.38; 'uses': 0.38; 'received:209': 0.39; 'subject: (': 0.40; 'march': 0.61
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:to :cc:content-type; bh=1jzVvrPcRc/7pkERxPz5bYuwMBsm2rd4IQIqxdoOe2c=; b=fZRnnRq7+fdigQ9zzX+6WfAKjvURgpUlLbbBtfSzblf+sKMO0iCmgtbxj85KvfFFBD EqYidQ9YHtZEcYr+NxgNnlAp534FYOSw4xXgpzhBnUPo4vjPemxiUAJcvzY1Vg5z+B4Y w5m7ClAHtLZM6npLWOs2xLpuP+UT82ntWk++4ZgqsUKUqnrTKMApVkHF1HBQ8U0dmD1d LcXJuXQO9PBK18CgK+Kp4GK5YoQWRxjIf/lLgGt/IGt/x3i/aSolffx8Qy2npx0/y41w G3gF6KG5C/Z3iofi8tAQ6bY3pIuvwChP9w8ZN9Zr3hiLdsDCxGYeDmDFSYqfeLxxp7kG Kelg==
MIME-Version 1.0
In-Reply-To <5B80DD153D7D744689F57F4FB69AF474026A5ECE@SBECMX008.exchad.jpmchase.net>
References <CANm61jcTZNVJAbkj2ZGJ+X1-mUZOoXsR90VstC4rb8UOo1x8Ug@mail.gmail.com> <CAJ6cK1b4Kop1uvEKLXUV3qBZkAajf+g-+i3pTksUVHxazy5EFg@mail.gmail.com> <jjr1qq$ji9$1@dough.gmane.org> <5B80DD153D7D744689F57F4FB69AF474026A5ECE@SBECMX008.exchad.jpmchase.net>
Date Wed, 14 Mar 2012 22:30:01 +0000
Subject Re: Style question (Poll)
From Arnaud Delobelle <arnodel@gmail.com>
To "Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list@python.org" <python-list@python.org>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.656.1331764204.3037.python-list@python.org> (permalink)
Lines 8
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331764204 news.xs4all.nl 6844 [2001:888:2000:d::a6]:45933
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21630

Show key headers only | View raw


On 14 March 2012 22:15, Prasad, Ramit <ramit.prasad@jpmorgan.com> wrote:
> Only use 'is' if you are looking for objects like True,
> False, None or something that MUST be exactly the same object.

I've rarely seen valid uses of 'is True' or 'is False'.

-- 
Arnaud

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


Thread

Re: Style question (Poll) Arnaud Delobelle <arnodel@gmail.com> - 2012-03-14 22:30 +0000

csiph-web