Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #77345
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.008 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'output': 0.05; 'intermediate': 0.07; 'reason,': 0.07; 'craft': 0.09; 'exception.': 0.09; 'false,': 0.09; 'true)': 0.09; 'cc:addr :python-list': 0.11; 'fine.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'statement.': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'aug': 0.22; 'cc:addr:python.org': 0.22; '31,': 0.24; 'cc:2**0': 0.24; 'this:': 0.26; 'header:In-Reply- To:1': 0.27; 'correct': 0.29; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'figure': 0.32; 'worked': 0.33; 'no,': 0.35; 'received:google.com': 0.35; 'add': 0.35; "didn't": 0.36; "i'll": 0.36; 'wrong': 0.37; 'pm,': 0.38; "couldn't": 0.39; 'eye': 0.61; 'kind': 0.63; 'results': 0.69; 'overall': 0.69; 'subject:have': 0.80; 'resulted': 0.84; 'subject:times': 0.84; 'to:none': 0.92 |
| 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:cc :content-type; bh=aglwWgvCWBPalyu3oq3lA6hqchJI9gWuwW+ojuisFO4=; b=C8L/tMehVGAZ2KoNENgCVqnLJd3l9TOqSHfinANEH04uUjA10KFUfHGhIaHBLClhk0 wLFci0zNLuWv10kxW1M3eni4PjATL/atskvDL+JPYeep5HuCvmdv4UFp/GZMLi4VSMy/ GVU+Yl4ITVwGKT3SUW0Wu1sHTUc7YH0IRWMBkPIBoEDJmzVk0O2rY1R0UEHrd2jEZ53c Mzo0VuciFYQkXTaUaij1DpMklicEJKjtfhXYLbsvhlbTL7KZtZUust+6jhsO258OZTFE mctJuudVKgV/uvWYTwoFYOog8gAaWw7WXdvdXZGfft5ed8IGGdIzuhoB6LovOGX+NTkk COyw== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.30.72 with SMTP id q8mr9198022igh.14.1409476575109; Sun, 31 Aug 2014 02:16:15 -0700 (PDT) |
| In-Reply-To | <5402deb1$0$9505$c3e8da3$5496439d@news.astraweb.com> |
| References | <b2540atcdbtj8hce9mnt4ml4i0nv5qso8u@4ax.com> <mailman.13646.1409424597.18130.python-list@python.org> <v6740aprghq946aj1r9mgk1j4865vivoqt@4ax.com> <5402deb1$0$9505$c3e8da3$5496439d@news.astraweb.com> |
| Date | Sun, 31 Aug 2014 19:16:14 +1000 |
| Subject | Re: I have tried and errored a reasonable amount of times |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.13660.1409476577.18130.python-list@python.org> (permalink) |
| Lines | 17 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1409476577 news.xs4all.nl 2915 [2001:888:2000:d::a6]:51731 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:77345 |
Show key headers only | View raw
On Sun, Aug 31, 2014 at 6:37 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > - Use print() to see the intermediate results: > > a = e[0].isupper > print(e[0], a, a == False, a == True) And I'll add to this: *Copy and paste* the original code to craft this output statement. I recently was trying to figure out a problem, and retyped to create the output statements... and I didn't make the same typo, so it worked fine. For some reason, my eye didn't notice the error, and I couldn't understand why the intermediate results were correct and the overall result was wrong. (And no, it wasn't the kind of 'wrong' that results in a nice tidy exception. It just resulted in wrong results.) ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
I have tried and errored a reasonable amount of times Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-30 14:27 -0400
Re: I have tried and errored a reasonable amount of times Tim Chase <python.list@tim.thechases.com> - 2014-08-30 13:48 -0500
Re: I have tried and errored a reasonable amount of times Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-30 14:50 -0400
Re: I have tried and errored a reasonable amount of times Ned Batchelder <ned@nedbatchelder.com> - 2014-08-30 16:20 -0400
Re: I have tried and errored a reasonable amount of times Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-30 16:32 -0400
Re: I have tried and errored a reasonable amount of times Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-31 18:37 +1000
Re: I have tried and errored a reasonable amount of times Chris Angelico <rosuav@gmail.com> - 2014-08-31 19:16 +1000
Re: I have tried and errored a reasonable amount of times Grant Edwards <invalid@invalid.invalid> - 2014-09-02 16:43 +0000
Re: I have tried and errored a reasonable amount of times Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-09-02 12:59 -0400
Re: I have tried and errored a reasonable amount of times Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-03 11:44 +1000
Re: I have tried and errored a reasonable amount of times Rustom Mody <rustompmody@gmail.com> - 2014-09-02 20:14 -0700
Re: I have tried and errored a reasonable amount of times Steven D'Aprano <steve@pearwood.info> - 2014-09-03 07:16 +0000
Re: I have tried and errored a reasonable amount of times Marko Rauhamaa <marko@pacujo.net> - 2014-09-03 10:44 +0300
Re: I have tried and errored a reasonable amount of times Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-09-04 11:54 +1000
Re: I have tried and errored a reasonable amount of times Chris Angelico <rosuav@gmail.com> - 2014-09-04 12:03 +1000
Re: I have tried and errored a reasonable amount of times Rustom Mody <rustompmody@gmail.com> - 2014-09-03 19:23 -0700
Re: I have tried and errored a reasonable amount of times Marko Rauhamaa <marko@pacujo.net> - 2014-09-04 08:36 +0300
Re: I have tried and errored a reasonable amount of times Denis McMahon <denismfmcmahon@gmail.com> - 2014-09-04 11:17 +0000
Re: I have tried and errored a reasonable amount of times Chris Angelico <rosuav@gmail.com> - 2014-09-04 21:42 +1000
Re: I have tried and errored a reasonable amount of times Denis McMahon <denismfmcmahon@gmail.com> - 2014-09-05 02:53 +0000
Re: I have tried and errored a reasonable amount of times Chris Angelico <rosuav@gmail.com> - 2014-09-05 13:02 +1000
Re: I have tried and errored a reasonable amount of times Grant Edwards <invalid@invalid.invalid> - 2014-09-05 14:54 +0000
Re: I have tried and errored a reasonable amount of times Marko Rauhamaa <marko@pacujo.net> - 2014-09-05 19:45 +0300
Re: I have tried and errored a reasonable amount of times Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-30 22:21 +0100
Re: I have tried and errored a reasonable amount of times Seymore4Head <Seymore4Head@Hotmail.invalid> - 2014-08-30 17:48 -0400
Re: I have tried and errored a reasonable amount of times Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-08-30 23:32 +0100
Re: I have tried and errored a reasonable amount of times Cameron Simpson <cs@zip.com.au> - 2014-08-31 15:30 +1000
Re: I have tried and errored a reasonable amount of times Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-08-31 19:05 +1000
csiph-web