Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
adecf3f6
Kaydet (Commit)
adecf3f6
authored
Mar 09, 2013
tarafından
Terry Jan Reedy
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #16642: sched.scheduler timefunc initial default is time.monotonic.
Patch by Ramchandra Apte
üst
f96b2b03
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
sched.rst
Doc/library/sched.rst
+3
-2
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/library/sched.rst
Dosyayı görüntüle @
adecf3f6
...
...
@@ -14,12 +14,13 @@
The :mod:`sched` module defines a class which implements a general purpose event
scheduler:
.. class:: scheduler(timefunc=time.
time
, delayfunc=time.sleep)
.. class:: scheduler(timefunc=time.
monotonic
, delayfunc=time.sleep)
The :class:`scheduler` class defines a generic interface to scheduling events.
It needs two functions to actually deal with the "outside world" --- *timefunc*
should be callable without arguments, and return a number (the "time", in any
units whatsoever). The *delayfunc* function should be callable with one
units whatsoever). If time.monotonic is not available, the *timefunc* default
is time.time instead. The *delayfunc* function should be callable with one
argument, compatible with the output of *timefunc*, and should delay that many
time units. *delayfunc* will also be called with the argument ``0`` after each
event is run to allow other threads an opportunity to run in multi-threaded
...
...
Misc/ACKS
Dosyayı görüntüle @
adecf3f6
...
...
@@ -44,6 +44,7 @@ Jérémy Anger
Ankur Ankan
Jon Anglin
Heidi Annexstad
Ramchandra Apte
Éric Araujo
Alicia Arlen
Jeffrey Armstrong
...
...
Misc/NEWS
Dosyayı görüntüle @
adecf3f6
...
...
@@ -802,6 +802,9 @@ Tools/Demos
Documentation
-------------
-
Issue
#
16642
:
sched
.
scheduler
timefunc
initial
default
is
time
.
monotonic
.
Patch
by
Ramchandra
Apte
-
Issue
#
15465
:
Document
the
versioning
macros
in
the
C
API
docs
rather
than
the
standard
library
docs
.
Patch
by
Kushal
Das
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment