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
889b92d3
Kaydet (Commit)
889b92d3
authored
Tem 14, 2013
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18432: Fix unintended API change in the sched module
üst
e6a17862
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
sched.py
Lib/sched.py
+1
-1
test_sched.py
Lib/test/test_sched.py
+1
-1
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/sched.py
Dosyayı görüntüle @
889b92d3
...
@@ -165,4 +165,4 @@ class scheduler:
...
@@ -165,4 +165,4 @@ class scheduler:
# the actual order they would be retrieved.
# the actual order they would be retrieved.
with
self
.
_lock
:
with
self
.
_lock
:
events
=
self
.
_queue
[:]
events
=
self
.
_queue
[:]
return
map
(
heapq
.
heappop
,
[
events
]
*
len
(
events
))
return
list
(
map
(
heapq
.
heappop
,
[
events
]
*
len
(
events
)
))
Lib/test/test_sched.py
Dosyayı görüntüle @
889b92d3
...
@@ -172,7 +172,7 @@ class TestCase(unittest.TestCase):
...
@@ -172,7 +172,7 @@ class TestCase(unittest.TestCase):
e3
=
scheduler
.
enterabs
(
now
+
0.03
,
1
,
fun
)
e3
=
scheduler
.
enterabs
(
now
+
0.03
,
1
,
fun
)
# queue property is supposed to return an order list of
# queue property is supposed to return an order list of
# upcoming events
# upcoming events
self
.
assertEqual
(
list
(
scheduler
.
queue
)
,
[
e1
,
e2
,
e3
,
e4
,
e5
])
self
.
assertEqual
(
scheduler
.
queue
,
[
e1
,
e2
,
e3
,
e4
,
e5
])
def
test_args_kwargs
(
self
):
def
test_args_kwargs
(
self
):
flag
=
[]
flag
=
[]
...
...
Misc/NEWS
Dosyayı görüntüle @
889b92d3
...
@@ -50,6 +50,9 @@ Library
...
@@ -50,6 +50,9 @@ Library
- Issue #18431: The new email header parser now decodes RFC2047 encoded words
- Issue #18431: The new email header parser now decodes RFC2047 encoded words
in structured headers.
in structured headers.
- Issue #18432: The sched module'
s
queue
method
was
incorrectly
returning
an
iterator
instead
of
a
list
.
-
Issue
#
18044
:
The
new
email
header
parser
was
mis
-
parsing
encoded
words
where
-
Issue
#
18044
:
The
new
email
header
parser
was
mis
-
parsing
encoded
words
where
an
encoded
character
immediately
followed
the
'?'
that
follows
the
CTE
an
encoded
character
immediately
followed
the
'?'
that
follows
the
CTE
character
,
resulting
in
a
decoding
failure
.
They
are
now
decoded
correctly
.
character
,
resulting
in
a
decoding
failure
.
They
are
now
decoded
correctly
.
...
...
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