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
85e1478c
Kaydet (Commit)
85e1478c
authored
Mar 23, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix very old names for exception terms #5543
üst
1fba6242
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
traceback.py
Lib/traceback.py
+5
-5
No files found.
Lib/traceback.py
Dosyayı görüntüle @
85e1478c
...
@@ -149,7 +149,7 @@ def format_exception_only(etype, value):
...
@@ -149,7 +149,7 @@ def format_exception_only(etype, value):
"""Format the exception part of a traceback.
"""Format the exception part of a traceback.
The arguments are the exception type and value such as given by
The arguments are the exception type and value such as given by
sys.
last_type and sys.last_value
. The return value is a list of
sys.
exc_info()[0] and sys.exc_info()[1]
. The return value is a list of
strings, each ending in a newline.
strings, each ending in a newline.
Normally, the list contains a single string; however, for
Normally, the list contains a single string; however, for
...
@@ -239,12 +239,12 @@ def format_exc(limit=None):
...
@@ -239,12 +239,12 @@ def format_exc(limit=None):
def
print_last
(
limit
=
None
,
file
=
None
):
def
print_last
(
limit
=
None
,
file
=
None
):
"""This is a shorthand for 'print_exception(sys.last_type,
"""
sys.last_value, sys.last_traceback, limit, file)'."""
This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'.
"""
if
file
is
None
:
if
file
is
None
:
file
=
sys
.
stderr
file
=
sys
.
stderr
print_exception
(
sys
.
last_type
,
sys
.
last_value
,
sys
.
last_traceback
,
print_exception
(
*
(
sys
.
exc_info
()
+
(
limit
,
file
)))
limit
,
file
)
def
print_stack
(
f
=
None
,
limit
=
None
,
file
=
None
):
def
print_stack
(
f
=
None
,
limit
=
None
,
file
=
None
):
...
...
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