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
e5132102
Kaydet (Commit)
e5132102
authored
Agu 26, 2013
tarafından
Victor Stinner
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #18408: _PyObject_Dump() now saves/restores the current exception
So it can be called even if an exception was raised
üst
0e1e0430
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
object.c
Objects/object.c
+6
-0
No files found.
Objects/object.c
Dosyayı görüntüle @
e5132102
...
@@ -406,11 +406,17 @@ _PyObject_Dump(PyObject* op)
...
@@ -406,11 +406,17 @@ _PyObject_Dump(PyObject* op)
#ifdef WITH_THREAD
#ifdef WITH_THREAD
PyGILState_STATE
gil
;
PyGILState_STATE
gil
;
#endif
#endif
PyObject
*
error_type
,
*
error_value
,
*
error_traceback
;
fprintf
(
stderr
,
"object : "
);
fprintf
(
stderr
,
"object : "
);
#ifdef WITH_THREAD
#ifdef WITH_THREAD
gil
=
PyGILState_Ensure
();
gil
=
PyGILState_Ensure
();
#endif
#endif
PyErr_Fetch
(
&
error_type
,
&
error_value
,
&
error_traceback
);
(
void
)
PyObject_Print
(
op
,
stderr
,
0
);
(
void
)
PyObject_Print
(
op
,
stderr
,
0
);
PyErr_Restore
(
error_type
,
error_value
,
error_traceback
);
#ifdef WITH_THREAD
#ifdef WITH_THREAD
PyGILState_Release
(
gil
);
PyGILState_Release
(
gil
);
#endif
#endif
...
...
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