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
d0977cd6
Kaydet (Commit)
d0977cd6
authored
Ara 15, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add definitions for standard warning category classes (PyExc_Warning
etc.).
üst
3fc30372
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
exceptions.c
Python/exceptions.c
+36
-0
No files found.
Python/exceptions.c
Dosyayı görüntüle @
d0977cd6
...
@@ -830,6 +830,8 @@ PyMethodDef SyntaxError_methods[] = {
...
@@ -830,6 +830,8 @@ PyMethodDef SyntaxError_methods[] = {
/* Exception doc strings */
static
char
static
char
AssertionError__doc__
[]
=
"Assertion failed."
;
AssertionError__doc__
[]
=
"Assertion failed."
;
...
@@ -876,6 +878,25 @@ IndentationError__doc__[] = "Improper indentation.";
...
@@ -876,6 +878,25 @@ IndentationError__doc__[] = "Improper indentation.";
static
char
static
char
TabError__doc__
[]
=
"Improper mixture of spaces and tabs."
;
TabError__doc__
[]
=
"Improper mixture of spaces and tabs."
;
/* Warning category docstrings */
static
char
Warning__doc__
[]
=
"Base class for warning categories."
;
static
char
UserWarning__doc__
[]
=
"Base class for warnings generated by user code."
;
static
char
DeprecationWarning__doc__
[]
=
"Base class for warnings about deprecated features."
;
static
char
SyntaxWarning__doc__
[]
=
"Base class for warnings about dubious syntax."
;
static
char
RuntimeWarning__doc__
[]
=
"Base class for warnings about dubious runtime behavior."
;
/* module global functions */
/* module global functions */
...
@@ -928,6 +949,13 @@ PyObject *PyExc_WindowsError;
...
@@ -928,6 +949,13 @@ PyObject *PyExc_WindowsError;
*/
*/
PyObject
*
PyExc_MemoryErrorInst
;
PyObject
*
PyExc_MemoryErrorInst
;
/* Predefined warning categories */
PyObject
*
PyExc_Warning
;
PyObject
*
PyExc_UserWarning
;
PyObject
*
PyExc_DeprecationWarning
;
PyObject
*
PyExc_SyntaxWarning
;
PyObject
*
PyExc_RuntimeWarning
;
/* mapping between exception names and their PyObject ** */
/* mapping between exception names and their PyObject ** */
...
@@ -992,6 +1020,14 @@ static struct {
...
@@ -992,6 +1020,14 @@ static struct {
{
"UnicodeError"
,
&
PyExc_UnicodeError
,
&
PyExc_ValueError
,
UnicodeError__doc__
},
{
"UnicodeError"
,
&
PyExc_UnicodeError
,
&
PyExc_ValueError
,
UnicodeError__doc__
},
{
"SystemError"
,
&
PyExc_SystemError
,
0
,
SystemError__doc__
},
{
"SystemError"
,
&
PyExc_SystemError
,
0
,
SystemError__doc__
},
{
"MemoryError"
,
&
PyExc_MemoryError
,
0
,
MemoryError__doc__
},
{
"MemoryError"
,
&
PyExc_MemoryError
,
0
,
MemoryError__doc__
},
/* Warning categories */
{
"Warning"
,
&
PyExc_Warning
,
&
PyExc_Exception
,
Warning__doc__
},
{
"UserWarning"
,
&
PyExc_UserWarning
,
&
PyExc_Warning
,
UserWarning__doc__
},
{
"DeprecationWarning"
,
&
PyExc_DeprecationWarning
,
&
PyExc_Warning
,
DeprecationWarning__doc__
},
{
"SyntaxWarning"
,
&
PyExc_SyntaxWarning
,
&
PyExc_Warning
,
SyntaxWarning__doc__
},
{
"RuntimeWarning"
,
&
PyExc_RuntimeWarning
,
&
PyExc_Warning
,
RuntimeWarning__doc__
},
/* Sentinel */
/* Sentinel */
{
NULL
}
{
NULL
}
};
};
...
...
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