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
c76aa483
Kaydet (Commit)
c76aa483
authored
Eyl 15, 2013
tarafından
Raymond Hettinger
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge
üst
668dede7
46f5ca31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
test_heapq.py
Lib/test/test_heapq.py
+9
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/test/test_heapq.py
Dosyayı görüntüle @
c76aa483
...
...
@@ -158,6 +158,15 @@ class TestHeap:
self
.
assertEqual
(
sorted
(
chain
(
*
inputs
)),
list
(
self
.
module
.
merge
(
*
inputs
)))
self
.
assertEqual
(
list
(
self
.
module
.
merge
()),
[])
def
test_merge_does_not_suppress_index_error
(
self
):
# Issue 19018: Heapq.merge suppresses IndexError from user generator
def
iterable
():
s
=
list
(
range
(
10
))
for
i
in
range
(
20
):
yield
s
[
i
]
# IndexError when i > 10
with
self
.
assertRaises
(
IndexError
):
list
(
self
.
module
.
merge
(
iterable
(),
iterable
()))
def
test_merge_stability
(
self
):
class
Int
(
int
):
pass
...
...
Misc/ACKS
Dosyayı görüntüle @
c76aa483
...
...
@@ -394,6 +394,7 @@ Nils Fischbeck
Frederik Fix
Matt Fleming
Hernán Martínez Foffani
Artem Fokin
Arnaud Fontaine
Michael Foord
Amaury Forgeot d'Arc
...
...
Misc/NEWS
Dosyayı görüntüle @
c76aa483
...
...
@@ -18,6 +18,9 @@ Library
-
Issue
#
17324
:
Fix
http
.
server
's request handling case on trailing '
/
'. Patch
contributed by Vajrasky Kok.
- Issue #19018: The heapq.merge() function no longer suppresses IndexError
in the underlying iterables.
- Issue #18784: The uuid module no more attempts to load libc via ctypes.CDLL,
if all necessary functions are already found in libuuid.
Patch by Evgeny Sologubov.
...
...
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