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
df558cb3
Kaydet (Commit)
df558cb3
authored
Ock 09, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Issue #16491: IDLE now prints chained exception tracebacks.
üst
2f3be0f1
71317499
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
9 deletions
+30
-9
run.py
Lib/idlelib/run.py
+28
-9
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/idlelib/run.py
Dosyayı görüntüle @
df558cb3
...
@@ -171,15 +171,34 @@ def print_exception():
...
@@ -171,15 +171,34 @@ def print_exception():
efile
=
sys
.
stderr
efile
=
sys
.
stderr
typ
,
val
,
tb
=
excinfo
=
sys
.
exc_info
()
typ
,
val
,
tb
=
excinfo
=
sys
.
exc_info
()
sys
.
last_type
,
sys
.
last_value
,
sys
.
last_traceback
=
excinfo
sys
.
last_type
,
sys
.
last_value
,
sys
.
last_traceback
=
excinfo
tbe
=
traceback
.
extract_tb
(
tb
)
seen
=
set
()
print
(
'Traceback (most recent call last):'
,
file
=
efile
)
exclude
=
(
"run.py"
,
"rpc.py"
,
"threading.py"
,
"queue.py"
,
def
print_exc
(
typ
,
exc
,
tb
):
"RemoteDebugger.py"
,
"bdb.py"
)
seen
.
add
(
exc
)
cleanup_traceback
(
tbe
,
exclude
)
context
=
exc
.
__context__
traceback
.
print_list
(
tbe
,
file
=
efile
)
cause
=
exc
.
__cause__
lines
=
traceback
.
format_exception_only
(
typ
,
val
)
if
cause
is
not
None
and
cause
not
in
seen
:
for
line
in
lines
:
print_exc
(
type
(
cause
),
cause
,
cause
.
__traceback__
)
print
(
line
,
end
=
''
,
file
=
efile
)
print
(
"
\n
The above exception was the direct cause "
"of the following exception:
\n
"
,
file
=
efile
)
elif
(
context
is
not
None
and
not
exc
.
__suppress_context__
and
context
not
in
seen
):
print_exc
(
type
(
context
),
context
,
context
.
__traceback__
)
print
(
"
\n
During handling of the above exception, "
"another exception occurred:
\n
"
,
file
=
efile
)
if
tb
:
tbe
=
traceback
.
extract_tb
(
tb
)
print
(
'Traceback (most recent call last):'
,
file
=
efile
)
exclude
=
(
"run.py"
,
"rpc.py"
,
"threading.py"
,
"queue.py"
,
"RemoteDebugger.py"
,
"bdb.py"
)
cleanup_traceback
(
tbe
,
exclude
)
traceback
.
print_list
(
tbe
,
file
=
efile
)
lines
=
traceback
.
format_exception_only
(
typ
,
exc
)
for
line
in
lines
:
print
(
line
,
end
=
''
,
file
=
efile
)
print_exc
(
typ
,
val
,
tb
)
def
cleanup_traceback
(
tb
,
exclude
):
def
cleanup_traceback
(
tb
,
exclude
):
"Remove excluded traces from beginning/end of tb; get cached lines"
"Remove excluded traces from beginning/end of tb; get cached lines"
...
...
Misc/NEWS
Dosyayı görüntüle @
df558cb3
...
@@ -209,6 +209,8 @@ Core and Builtins
...
@@ -209,6 +209,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #16491: IDLE now prints chained exception tracebacks.
- fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
- fcntl: add F_DUPFD_CLOEXEC constant, available on Linux 2.6.24+.
- Issue #15972: Fix error messages when os functions expecting a file name or
- Issue #15972: Fix error messages when os functions expecting a file name or
...
...
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