Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e643412

Browse filesBrowse files
gh-103417: use time.monotonic in the example for sched.scheduler (GH-103418)
(cherry picked from commit f2b7ecb) Co-authored-by: Nick Burns <nburns@users.noreply.github.com>
1 parent b5fe28d commit e643412
Copy full SHA for e643412

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎Doc/library/sched.rst

Copy file name to clipboardExpand all lines: Doc/library/sched.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ scheduler:
3636
Example::
3737

3838
>>> import sched, time
39-
>>> s = sched.scheduler(time.time, time.sleep)
39+
>>> s = sched.scheduler(time.monotonic, time.sleep)
4040
>>> def print_time(a='default'):
4141
... print("From print_time", time.time(), a)
4242
...

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.