Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21631
| Return-Path | <ramit.prasad@jpmorgan.com> |
|---|---|
| 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; 'completeness': 0.05; 'suppose': 0.05; 'false,': 0.09; 'case.': 0.15; 'to:name:python- list@python.org': 0.15; '712': 0.16; 'although,': 0.16; 'currencies': 0.16; 'disclaimers': 0.16; 'disclaimers,': 0.16; 'from:addr:jpmorgan.com': 0.16; 'received:155.180': 0.16; 'received:155.180.234': 0.16; 'received:155.180.234.122': 0.16; 'received:159.53': 0.16; 'received:159.53.110': 0.16; 'received:bankone.net': 0.16; 'received:exchad.jpmchase.net': 0.16; 'received:jpmchase.com': 0.16; 'received:jpmchase.net': 0.16; 'received:se3.svr.bankone.net': 0.16; 'received:svr.bankone.net': 0.16; 'securities,': 0.16; 'subject:Poll': 0.16; 'url:disclosures': 0.16; 'url:jpmorgan': 0.16; 'subject:question': 0.16; '>>>': 0.18; 'header:In-Reply- To:1': 0.22; 'received:169': 0.28; 'received:169.254': 0.28; 'true,': 0.29; 'example': 0.29; 'false.': 0.30; 'granted,': 0.30; 'object.': 0.30; 'rarely': 0.30; 'received:155': 0.30; 'received:159': 0.30; 'pretty': 0.31; 'accuracy': 0.32; 'instead.': 0.32; "i've": 0.32; 'objects': 0.32; 'to:addr:python- list': 0.35; 'phone:': 0.35; 'none': 0.35; 'something': 0.35; 'uses': 0.38; 'could': 0.38; 'useful': 0.38; 'think': 0.38; 'subject: (': 0.40; 'might': 0.40; 'to:addr:python.org': 0.40; 'world': 0.61; 'subject': 0.61; 'offers': 0.62; 'information,': 0.69; 'legal': 0.72; 'url:email': 0.72; 'bank': 0.75; 'sale': 0.75; 'investment': 0.77; 'purchase': 0.78 |
| X-DKIM | OpenDKIM Filter v2.1.3 sj3.jpmchase.com q2EN8K14026571 |
| DKIM-Signature | v=1; a=rsa-sha256; c=simple/simple; d=jpmorgan.com; s=smtpout; t=1331766501; bh=WVMHuaETOOTyF/dbwwGjLgX03IBVbLRuxUCq1ZrGSBc=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Transfer-Encoding:MIME-Version:Content-Type; b=BQg6rl+vdsAKK2AnT3HvWZvWcb7Zxg/Y53QLcQOfS5p9ZEV1Gf0fZ43FNqgvumYuC 1exeebWZrjZujHuG6ZCEBBEI3+O2I0B+KZdBQtqcjNvc8Swzm0kcHgFVWNR3kX2Ast bvAFeBZ2fKEx5ocHY47MT+NFQ2vak+zdWnXLdgfQ= |
| From | "Prasad, Ramit" <ramit.prasad@jpmorgan.com> |
| To | "python-list@python.org" <python-list@python.org> |
| Subject | RE: Style question (Poll) |
| Thread-Topic | Style question (Poll) |
| Thread-Index | AQHNAiJLU/bfhqJ1hEOLTzSCd54dTJZqho8AgAAHj4D//8qysIAASfaA///GEwA= |
| Date | Wed, 14 Mar 2012 23:08:17 +0000 |
| References | <CANm61jcTZNVJAbkj2ZGJ+X1-mUZOoXsR90VstC4rb8UOo1x8Ug@mail.gmail.com> <CAJ6cK1b4Kop1uvEKLXUV3qBZkAajf+g-+i3pTksUVHxazy5EFg@mail.gmail.com> <jjr1qq$ji9$1@dough.gmane.org> <5B80DD153D7D744689F57F4FB69AF474026A5ECE@SBECMX008.exchad.jpmchase.net> <CAJ6cK1anyqs3x+==0qY7Ax58GSfz0pLyVMUcEXvaqeSZAA6XFA@mail.gmail.com> |
| In-Reply-To | <CAJ6cK1anyqs3x+==0qY7Ax58GSfz0pLyVMUcEXvaqeSZAA6XFA@mail.gmail.com> |
| Accept-Language | en-US |
| Content-Language | en-US |
| X-MS-Has-Attach | |
| X-MS-TNEF-Correlator | |
| x-originating-ip | [10.67.79.38] |
| Content-Transfer-Encoding | base64 |
| MIME-Version | 1.0 |
| X-DLP-FWD | Yes |
| Content-Type | text/plain; charset="utf-8" |
| 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.657.1331766504.3037.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1331766504 news.xs4all.nl 6964 [2001:888:2000:d::a6]:54828 |
| X-Complaints-To | abuse@xs4all.nl |
| Path | csiph.com!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
| Xref | csiph.com comp.lang.python:21631 |
Show key headers only | View raw
> > 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'. It can be useful when you think something might be None or False. Although, I suppose you could always just use 'is None' instead. >>> 1 == True True >>> 1 is True False >>> 0 == False True >>> 0 is False False Granted, the above example is a pretty facetious case; not sure I can come up with a reasonably real world use case. Ramit Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology 712 Main Street | Houston, TX 77002 work phone: 713 - 216 - 5423 -- This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
RE: Style question (Poll) "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-14 23:08 +0000
csiph-web