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
c608fb63
Kaydet (Commit)
c608fb63
authored
Mar 23, 2001
tarafından
Ka-Ping Yee
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Give a slightly better explanation of excepthook.
üst
f170d7fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
libsys.tex
Doc/lib/libsys.tex
+6
-4
No files found.
Doc/lib/libsys.tex
Dosyayı görüntüle @
c608fb63
...
...
@@ -51,19 +51,21 @@ If \var{value} is not \code{None}, this function prints it to
\code
{
sys.displayhook
}
is called on the result of evaluating
an expression entered in an interactive Python session.
The display of these values can be customized by assigning
another function to
\code
{
sys.displayhook
}
.
another
one-argument
function to
\code
{
sys.displayhook
}
.
\end{funcdesc}
\begin{funcdesc}
{
excepthook
}{
\var
{
type
}
,
\var
{
value
}
,
\var
{
traceback
}}
This function prints out a given traceback and exception to
\code
{
sys.stderr
}
.
\code
{
sys.excepthook
}
is called when an exception is raised
and uncaught. In an interactive session this happens just before
When an exception is raised and uncaught, the interpreter calls
\code
{
sys.excepthook
}
with three arguments, the exception class,
exception instance, and a traceback object.
In an interactive session this happens just before
control is returned to the prompt; in a Python program this happens
just before the program exits.
The handling of such top-level exceptions can be customized by
assigning another function to
\code
{
sys.excepthook
}
.
assigning another
three-argument
function to
\code
{
sys.excepthook
}
.
\end{funcdesc}
\begin{datadesc}
{__
displayhook
__}
...
...
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