[issue34677] Event scheduler page example

2019-06-10 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you for the report. As others have said, the actual time.time() value for the two `s.enter` events is different even though the `delay` value of 5 seems like it should be the same. As @xtreak pointed out, the example is clever in showing that using `

[issue34677] Event scheduler page example

2019-04-02 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: enter takes a relative time and priority is taken into consideration only when time is equal. So in the example enter(0.001, 2) is executed first and there is some delay in executing enter(0.001, 2). You can also view the queue with s.queue which is

[issue34677] Event scheduler page example

2019-04-02 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12588 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34677] Event scheduler page example

2018-09-14 Thread mediator42
New submission from mediator42 : Hi, I am pretty confident, that the example you put on the Event scheduler page (https://docs.python.org/3.7/library/sched.html) is somehow strange. If the priority argument behave as described, it should print the "keyword" line before the "positional" line,