-
-
Notifications
You must be signed in to change notification settings - Fork 32k
sched.scheduler docs improvement #103417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
docs
Documentation in the Doc dir
Comments
nburns
added a commit
to nburns/cpython
that referenced
this issue
Apr 10, 2023
nburns
added a commit
to nburns/cpython
that referenced
this issue
Apr 10, 2023
hauntsaninja
pushed a commit
that referenced
this issue
Apr 12, 2023
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Apr 12, 2023
pythonGH-103418) (cherry picked from commit f2b7ecb) Co-authored-by: Nick Burns <[email protected]>
miss-islington
added a commit
that referenced
this issue
Apr 12, 2023
…103418) (cherry picked from commit f2b7ecb) Co-authored-by: Nick Burns <[email protected]>
aisk
pushed a commit
to aisk/cpython
that referenced
this issue
Apr 18, 2023
Thank you! |
It broke the example which expects that the result of |
serhiy-storchaka
pushed a commit
that referenced
this issue
Feb 25, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 25, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete. (cherry picked from commit cb287d3) Co-authored-by: mauricelambert <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Feb 25, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete. (cherry picked from commit cb287d3) Co-authored-by: mauricelambert <[email protected]>
This was referenced Feb 25, 2024
serhiy-storchaka
pushed a commit
that referenced
this issue
Feb 25, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete. (cherry picked from commit cb287d3) Co-authored-by: mauricelambert <[email protected]>
serhiy-storchaka
pushed a commit
that referenced
this issue
Feb 25, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete. (cherry picked from commit cb287d3) Co-authored-by: mauricelambert <[email protected]>
woodruffw
pushed a commit
to woodruffw-forks/cpython
that referenced
this issue
Mar 4, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete.
diegorusso
pushed a commit
to diegorusso/cpython
that referenced
this issue
Apr 17, 2024
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete.
LukasWoodtli
pushed a commit
to LukasWoodtli/cpython
that referenced
this issue
Jan 22, 2025
Arguments to enterabs() are specified as Unix time. If the scheduler use the time.monotonic timer, the code will take decades to complete.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Documentation
The docs for
sched.scheduler
have an example that usestime.time
as thetimefunc
https://docs.python.org/3/library/sched.html#sched.schedulerUsing
time.time
instead 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.monononic
so as to introduce better practices to people learning the language.Linked PRs
The text was updated successfully, but these errors were encountered: