Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74256
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <2014@jmunch.dk> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.102 |
| X-Spam-Level | * |
| X-Spam-Evidence | '*H*': 0.81; '*S*': 0.02; 'anders': 0.09; 'cc:addr :python-list': 0.11; 'def': 0.12; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'header:User-Agent:1': 0.23; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'received:dk': 0.31; 'class': 0.32; 'charset:us-ascii': 0.36; 'skip:. 20': 0.38; 'skip:. 10': 0.39; 'skip:p 20': 0.39; 'header:Return-path:1': 0.60; 'new': 0.61; 'subject:For': 0.78; 'to:none': 0.92 |
| Date | Wed, 09 Jul 2014 17:05:32 +0200 |
| From | "Anders J. Munch" <2014@jmunch.dk> |
| Organization | . |
| User-Agent | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
| MIME-Version | 1.0 |
| CC | "python-list@python.org" <python-list@python.org> |
| Subject | Re: NaN comparisons - Call For Anecdotes |
| References | <53BC05FB.4050707@jmunch.dk> <CAPTjJmoD5gfwpcW_45bzO846gFYMGH6+9TYowSea0SPpe-o__A@mail.gmail.com> <53BC38A0.7030100@jmunch.dk> |
| In-Reply-To | <53BC38A0.7030100@jmunch.dk> |
| Content-Type | text/plain; charset=us-ascii; format=flowed |
| Content-Transfer-Encoding | 7bit |
| 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.11691.1404918341.18130.python-list@python.org> (permalink) |
| Lines | 26 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1404918341 news.xs4all.nl 2903 [2001:888:2000:d::a6]:35825 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:74256 |
Show key headers only | View raw
I wrote: > | class Monitor(Thread): > | def run(self): > | old = self.get_current_value() > | while not self.Terminated: > | new = self.get_current_value() > | if new != old: > | print(time.asctime(), "changed to", new) > | old = new > | time.sleep(1) > Huh, I don't know what happened to the identation here, I'l try again: class Monitor(Thread): ....def run(self): ........old = self.get_current_value() ........while not self.Terminated: ............new = self.get_current_value() ............if new != old: ................print(time.asctime(), "changed to", new) ............old = new ............time.sleep(1) regards, Anders
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: NaN comparisons - Call For Anecdotes "Anders J. Munch" <2014@jmunch.dk> - 2014-07-09 17:05 +0200
csiph-web