From 740ee3db34d9416f70e0c056ceddd73cd65a44d0 Mon Sep 17 00:00:00 2001 From: o Date: Sat, 23 Sep 2017 23:56:46 +0200 Subject: [PATCH] Make clear that lower priority numbers mean higher priority. --- Doc/library/sched.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Doc/library/sched.rst b/Doc/library/sched.rst index 4d4a6161057cc5c..89e4ef15ff8c2d5 100644 --- a/Doc/library/sched.rst +++ b/Doc/library/sched.rst @@ -69,7 +69,8 @@ Scheduler Objects Schedule a new event. The *time* argument should be a numeric type compatible with the return value of the *timefunc* function passed to the constructor. Events scheduled for the same *time* will be executed in the order of their - *priority*. + *priority*. Lower priority numbers mean higher priority; in this + way the queue can be maintained as a priority queue. Executing the event means executing ``action(*argument, **kwargs)``. *argument* is a sequence holding the positional arguments for *action*.