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
1dea760c
Kaydet (Commit)
1dea760c
authored
Ara 25, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make sure subsections are formatted into HTML pages with reasonable names.
üst
f08cbb17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
libwarnings.tex
Doc/lib/libwarnings.tex
+5
-4
No files found.
Doc/lib/libwarnings.tex
Dosyayı görüntüle @
1dea760c
...
@@ -43,7 +43,7 @@ implementation of this function formats the message by calling
...
@@ -43,7 +43,7 @@ implementation of this function formats the message by calling
implementations.
implementations.
\subsection
{
Warning Categories
}
\subsection
{
Warning Categories
\label
{
warning-categories
}
}
There are a number of built-in exceptions that represent warning
There are a number of built-in exceptions that represent warning
categories. This categorization is useful to be able to filter out
categories. This categorization is useful to be able to filter out
...
@@ -76,7 +76,7 @@ of the standard warning categories. A warning category must always be
...
@@ -76,7 +76,7 @@ of the standard warning categories. A warning category must always be
a subclass of the
\exception
{
Warning
}
class.
a subclass of the
\exception
{
Warning
}
class.
\subsection
{
The Warnings Filter
}
\subsection
{
The Warnings Filter
\label
{
warning-filter
}
}
The warnings filter controls whether warnings are ignored, displayed,
The warnings filter controls whether warnings are ignored, displayed,
or turned into errors (raising an exception).
or turned into errors (raising an exception).
...
@@ -138,7 +138,7 @@ it is first imported (invalid options are ignored, after printing a
...
@@ -138,7 +138,7 @@ it is first imported (invalid options are ignored, after printing a
message to
\code
{
sys.stderr
}
).
message to
\code
{
sys.stderr
}
).
\subsection
{
Available Functions
}
\subsection
{
Available Functions
\label
{
warning-functions
}
}
\begin{funcdesc}
{
warn
}{
message
\optional
{
, category
\optional
{
, stacklevel
}}}
\begin{funcdesc}
{
warn
}{
message
\optional
{
, category
\optional
{
, stacklevel
}}}
Issue a warning, or maybe ignore it or raise an exception. The
Issue a warning, or maybe ignore it or raise an exception. The
...
@@ -175,7 +175,8 @@ contain embedded newlines and ends in a newline.
...
@@ -175,7 +175,8 @@ contain embedded newlines and ends in a newline.
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
filterwarnings
}{
action
\optional
{
,
\begin{funcdesc}
{
filterwarnings
}{
action
\optional
{
,
message
\optional
{
, category
\optional
{
, module
\optional
{
, lineno
}}}}}
message
\optional
{
, category
\optional
{
,
module
\optional
{
, lineno
}}}}}
Insert an entry into the list of warnings filters (at the front).
Insert an entry into the list of warnings filters (at the front).
This checks the types of the arguments, compiles the message and
This checks the types of the arguments, compiles the message and
module regular expressions, and inserts them as a tuple in front
module regular expressions, and inserts them as a tuple in front
...
...
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