Documentation
The docs for sched.scheduler have an example that uses time.time as the timefunc https://docs.python.org/3/library/sched.html#sched.scheduler
Using time.time instead of time.monotonic (the default value of sched.scheduler) creates the potential for "strange things" to happen when seasonal time shifts make the system clock go backwards, resulting in bugs in user's code.
It seems like it would be better to use time.monononic so as to introduce better practices to people learning the language.
Linked PRs
Documentation
The docs for
sched.schedulerhave an example that usestime.timeas thetimefunchttps://docs.python.org/3/library/sched.html#sched.schedulerUsing
time.timeinstead oftime.monotonic(the default value ofsched.scheduler) creates the potential for "strange things" to happen when seasonal time shifts make the system clock go backwards, resulting in bugs in user's code.It seems like it would be better to use
time.monononicso as to introduce better practices to people learning the language.Linked PRs