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
0a6996d8
Kaydet (Commit)
0a6996d8
authored
Agu 18, 2016
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Merge 3.5 (fix raise)
üst
989df09d
eec9331b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
test_threading.py
Lib/test/test_threading.py
+18
-0
NEWS
Misc/NEWS
+5
-0
ceval.c
Python/ceval.c
+1
-1
No files found.
Lib/test/test_threading.py
Dosyayı görüntüle @
0a6996d8
...
@@ -1043,6 +1043,24 @@ class ThreadingExceptionTests(BaseTestCase):
...
@@ -1043,6 +1043,24 @@ class ThreadingExceptionTests(BaseTestCase):
self
.
assertEqual
(
out
,
b
''
)
self
.
assertEqual
(
out
,
b
''
)
self
.
assertNotIn
(
"Unhandled exception"
,
err
.
decode
())
self
.
assertNotIn
(
"Unhandled exception"
,
err
.
decode
())
def
test_bare_raise_in_brand_new_thread
(
self
):
def
bare_raise
():
raise
class
Issue27558
(
threading
.
Thread
):
exc
=
None
def
run
(
self
):
try
:
bare_raise
()
except
Exception
as
exc
:
self
.
exc
=
exc
thread
=
Issue27558
()
thread
.
start
()
thread
.
join
()
self
.
assertIsNotNone
(
thread
.
exc
)
self
.
assertIsInstance
(
thread
.
exc
,
RuntimeError
)
class
TimerTests
(
BaseTestCase
):
class
TimerTests
(
BaseTestCase
):
...
...
Misc/NEWS
Dosyayı görüntüle @
0a6996d8
...
@@ -10,12 +10,17 @@ What's New in Python 3.6.0 beta 1
...
@@ -10,12 +10,17 @@ What's New in Python 3.6.0 beta 1
Core and Builtins
Core and Builtins
-----------------
-----------------
- Issue #27558: Fix a SystemError in the implementation of "raise" statement.
In a brand new thread, raise a RuntimeError since there is no active
exception to reraise. Patch written by Xiang Zhang.
Library
Library
-------
-------
- Issue #9998: On Linux, ctypes.util.find_library now looks in LD_LIBRARY_PATH
- Issue #9998: On Linux, ctypes.util.find_library now looks in LD_LIBRARY_PATH
for shared libraries.
for shared libraries.
What'
s
New
in
Python
3.6.0
alpha
4
What'
s
New
in
Python
3.6.0
alpha
4
==================================
==================================
...
...
Python/ceval.c
Dosyayı görüntüle @
0a6996d8
...
@@ -4154,7 +4154,7 @@ do_raise(PyObject *exc, PyObject *cause)
...
@@ -4154,7 +4154,7 @@ do_raise(PyObject *exc, PyObject *cause)
type
=
tstate
->
exc_type
;
type
=
tstate
->
exc_type
;
value
=
tstate
->
exc_value
;
value
=
tstate
->
exc_value
;
tb
=
tstate
->
exc_traceback
;
tb
=
tstate
->
exc_traceback
;
if
(
type
==
Py_None
)
{
if
(
type
==
Py_None
||
type
==
NULL
)
{
PyErr_SetString
(
PyExc_RuntimeError
,
PyErr_SetString
(
PyExc_RuntimeError
,
"No active exception to reraise"
);
"No active exception to reraise"
);
return
0
;
return
0
;
...
...
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