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


Groups > comp.lang.python > #74256 > unrolled thread

Re: NaN comparisons - Call For Anecdotes

Started by"Anders J. Munch" <2014@jmunch.dk>
First post2014-07-09 17:05 +0200
Last post2014-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.


Contents

  Re: NaN comparisons - Call For Anecdotes "Anders J. Munch" <2014@jmunch.dk> - 2014-07-09 17:05 +0200

#74256 — Re: NaN comparisons - Call For Anecdotes

From"Anders J. Munch" <2014@jmunch.dk>
Date2014-07-09 17:05 +0200
SubjectRe: 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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web