Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.005 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '"""': 0.07; 'parameter': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:skip:t 10': 0.09; 'def': 0.12; 'invokes': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'relinquish': 0.16; 'sleep(delay)': 0.16; 'processor': 0.24; 'url:home': 0.24; 'task': 0.26; 'least': 0.26; 'header:X -Complaints-To:1': 0.27; 'function': 0.29; "doesn't": 0.30; 'dec': 0.30; "d'aprano": 0.31; 'steven': 0.31; 'becomes': 0.33; 'fri,': 0.33; 'but': 0.35; 'really': 0.36; 'acceptable': 0.36; 'returning': 0.36; 'next': 0.36; 'charset:us-ascii': 0.36; 'positive': 0.37; 'being': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'system.': 0.39; 'received:org': 0.40; 'transfer': 0.82; 'subject:over': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: time.monotonic() roll over Date: Fri, 05 Dec 2014 12:12:23 -0500 Organization: IISS Elusive Unicorn References: <54807cfd$0$2311$426a74cc@news.free.fr> <87vblr8lcw.fsf@elektro.pacujo.net> <87r3wf8jy8.fsf@elektro.pacujo.net> <87ppbzp9qq.fsf@elektro.pacujo.net> <5480fea7$0$12992$c3e8da3$5496439d@news.astraweb.com> <54811e7b$0$13004$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-68-179-216.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417799556 news.xs4all.nl 2952 [2001:888:2000:d::a6]:46611 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!usenet.pasdenom.info!bete-des-vosges.org!feed.ac-versailles.fr!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:82007 On Fri, 05 Dec 2014 13:54:51 +1100, Steven D'Aprano declaimed the following: >That's silly. Zero is "up to" any positive value you want. Do you really >intend to say that this would be an acceptable implementation of sleep()? > >def sleep(delay): > return > I wouldn't, but only because that doesn't give up the processor def sleep(delay): system.scheduler() #Whatever one wants to call it... return OTOH -- does at least relinquish the processor... Of course, it does not meet the (implied) documentation of not returning until at least time has passed. That then becomes a documentation flaw. """ sleep(delay) Invokes the OS process scheduler to immediately transfer control to the next ready task on the system. The parameter is a place holder and has no effect; the function returns immediately upon the process being made active by the OS scheduler. """ -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/