classification
Title: Event scheduler page example
Type: behavior Stage:
Components: Documentation Versions: Python 3.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, mediator42
Priority: normal Keywords:

Created on 2018-09-14 12:17 by mediator42, last changed 2018-09-14 12:17 by mediator42.

Messages (1)
msg325345 - (view) Author: mediator42 (mediator42) Date: 2018-09-14 12:17
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, since these events are scheduled for the same time but "keyword" has a higher priority than "positional".

When I run this script on my PC it behaves correctly.

Best reagrds
History
Date User Action Args
2018-09-14 12:17:49mediator42create