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


Groups > comp.lang.python > #74256

Re: NaN comparisons - Call For Anecdotes

Date 2014-07-09 17:05 +0200
From "Anders J. Munch" <2014@jmunch.dk>
Organization .
Subject Re: NaN comparisons - Call For Anecdotes
References <53BC05FB.4050707@jmunch.dk> <CAPTjJmoD5gfwpcW_45bzO846gFYMGH6+9TYowSea0SPpe-o__A@mail.gmail.com> <53BC38A0.7030100@jmunch.dk>
Newsgroups comp.lang.python
Message-ID <mailman.11691.1404918341.18130.python-list@python.org> (permalink)

Show all headers | 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


Thread

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

csiph-web