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
56ba72a5
Kaydet (Commit)
56ba72a5
authored
Şub 28, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Document warn_explicit().
üst
f1d7b41f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
libwarnings.tex
Doc/lib/libwarnings.tex
+10
-0
No files found.
Doc/lib/libwarnings.tex
Dosyayı görüntüle @
56ba72a5
...
@@ -161,6 +161,16 @@ rather than to the source of \function{deprecation()} itself (since
...
@@ -161,6 +161,16 @@ rather than to the source of \function{deprecation()} itself (since
the latter would defeat the purpose of the warning message).
the latter would defeat the purpose of the warning message).
\end{funcdesc}
\end{funcdesc}
\begin{funcdesc}
{
warn
_
explicit
}{
message, category, filename,
lineno
\optional
{
, module
\optional
{
, registry
}}}
This is a low-level interface to the functionality of
\function
{
warn()
}
, passing in explicitly the message, category,
filename and line number, and optionally the module name and the
registry (which should be the
\code
{__
warningregistry
__}
dictionary of
the module). The module name defaults to the filename with
\code
{
.py
}
stripped; if no registry is passed, the warning is never suppressed.
\end{funcdesc}
\begin{funcdesc}
{
showwarning
}{
message, category, filename,
\begin{funcdesc}
{
showwarning
}{
message, category, filename,
lineno
\optional
{
, file
}}
lineno
\optional
{
, file
}}
Write a warning to a file. The default implementation calls
Write a warning to a file. The default implementation calls
...
...
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