Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #74256 > unrolled thread
| Started by | "Anders J. Munch" <2014@jmunch.dk> |
|---|---|
| First post | 2014-07-09 17:05 +0200 |
| Last post | 2014-07-09 17:05 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: NaN comparisons - Call For Anecdotes "Anders J. Munch" <2014@jmunch.dk> - 2014-07-09 17:05 +0200
| From | "Anders J. Munch" <2014@jmunch.dk> |
|---|---|
| Date | 2014-07-09 17:05 +0200 |
| Subject | Re: NaN comparisons - Call For Anecdotes |
| Message-ID | <mailman.11691.1404918341.18130.python-list@python.org> |
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 top | Article view | comp.lang.python
csiph-web