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
3e6c335a
Kaydet (Commit)
3e6c335a
authored
Mar 23, 2009
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
revert r70552; wrong fix
üst
85e1478c
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 @
3e6c335a
...
...
@@ -149,7 +149,7 @@ def format_exception_only(etype, value):
"""Format the exception part of a traceback.
The arguments are the exception type and value such as given by
sys.
exc_info()[0] and sys.exc_info()[1]
. The return value is a list of
sys.
last_type and sys.last_value
. The return value is a list of
strings, each ending in a newline.
Normally, the list contains a single string; however, for
...
...
@@ -239,12 +239,12 @@ def format_exc(limit=None):
def
print_last
(
limit
=
None
,
file
=
None
):
"""
This is a shorthand for 'print_exception(*sys.exc_info(), limit, file)'.
"""
"""This is a shorthand for 'print_exception(sys.last_type,
sys.last_value, sys.last_traceback, limit, file)'."""
if
file
is
None
:
file
=
sys
.
stderr
print_exception
(
*
(
sys
.
exc_info
()
+
(
limit
,
file
)))
print_exception
(
sys
.
last_type
,
sys
.
last_value
,
sys
.
last_traceback
,
limit
,
file
)
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