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
1226588e
Kaydet (Commit)
1226588e
authored
May 25, 2000
tarafından
Barry Warsaw
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bltin_exc: Removed the leaf_exc flag in the structure, which was only
used to build the fallback string-based exception.
üst
101de379
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
35 deletions
+29
-35
bltinmodule.c
Python/bltinmodule.c
+29
-35
No files found.
Python/bltinmodule.c
Dosyayı görüntüle @
1226588e
...
...
@@ -2397,45 +2397,39 @@ static struct
{
char
*
name
;
PyObject
**
exc
;
int
leaf_exc
;
}
bltin_exc
[]
=
{
{
"Exception"
,
&
PyExc_Exception
,
0
},
{
"StandardError"
,
&
PyExc_StandardError
,
0
},
{
"ArithmeticError"
,
&
PyExc_ArithmeticError
,
0
},
{
"LookupError"
,
&
PyExc_LookupError
,
0
},
{
"AssertionError"
,
&
PyExc_AssertionError
,
1
},
{
"AttributeError"
,
&
PyExc_AttributeError
,
1
},
{
"EOFError"
,
&
PyExc_EOFError
,
1
},
{
"FloatingPointError"
,
&
PyExc_FloatingPointError
,
1
},
{
"EnvironmentError"
,
&
PyExc_EnvironmentError
,
0
},
{
"IOError"
,
&
PyExc_IOError
,
1
},
{
"OSError"
,
&
PyExc_OSError
,
1
},
{
"ImportError"
,
&
PyExc_ImportError
,
1
},
{
"IndexError"
,
&
PyExc_IndexError
,
1
},
{
"KeyError"
,
&
PyExc_KeyError
,
1
},
{
"KeyboardInterrupt"
,
&
PyExc_KeyboardInterrupt
,
1
},
{
"MemoryError"
,
&
PyExc_MemoryError
,
1
},
/* Note: NameError is not a leaf in exceptions.py, but unlike
the other non-leafs NameError is meant to be raised directly
at times -- the leaf_exc member really seems to mean something
like "this is an abstract base class" when false.
*/
{
"NameError"
,
&
PyExc_NameError
,
1
},
{
"OverflowError"
,
&
PyExc_OverflowError
,
1
},
{
"RuntimeError"
,
&
PyExc_RuntimeError
,
1
},
{
"NotImplementedError"
,
&
PyExc_NotImplementedError
,
1
},
{
"SyntaxError"
,
&
PyExc_SyntaxError
,
1
},
{
"SystemError"
,
&
PyExc_SystemError
,
1
},
{
"SystemExit"
,
&
PyExc_SystemExit
,
1
},
{
"UnboundLocalError"
,
&
PyExc_UnboundLocalError
,
1
},
{
"UnicodeError"
,
&
PyExc_UnicodeError
,
1
},
{
"TypeError"
,
&
PyExc_TypeError
,
1
},
{
"ValueError"
,
&
PyExc_ValueError
,
1
},
{
"Exception"
,
&
PyExc_Exception
},
{
"StandardError"
,
&
PyExc_StandardError
},
{
"ArithmeticError"
,
&
PyExc_ArithmeticError
},
{
"LookupError"
,
&
PyExc_LookupError
},
{
"AssertionError"
,
&
PyExc_AssertionError
},
{
"AttributeError"
,
&
PyExc_AttributeError
},
{
"EOFError"
,
&
PyExc_EOFError
},
{
"FloatingPointError"
,
&
PyExc_FloatingPointError
},
{
"EnvironmentError"
,
&
PyExc_EnvironmentError
},
{
"IOError"
,
&
PyExc_IOError
},
{
"OSError"
,
&
PyExc_OSError
},
{
"ImportError"
,
&
PyExc_ImportError
},
{
"IndexError"
,
&
PyExc_IndexError
},
{
"KeyError"
,
&
PyExc_KeyError
},
{
"KeyboardInterrupt"
,
&
PyExc_KeyboardInterrupt
},
{
"MemoryError"
,
&
PyExc_MemoryError
},
{
"NameError"
,
&
PyExc_NameError
},
{
"OverflowError"
,
&
PyExc_OverflowError
},
{
"RuntimeError"
,
&
PyExc_RuntimeError
},
{
"NotImplementedError"
,
&
PyExc_NotImplementedError
},
{
"SyntaxError"
,
&
PyExc_SyntaxError
},
{
"SystemError"
,
&
PyExc_SystemError
},
{
"SystemExit"
,
&
PyExc_SystemExit
},
{
"UnboundLocalError"
,
&
PyExc_UnboundLocalError
},
{
"UnicodeError"
,
&
PyExc_UnicodeError
},
{
"TypeError"
,
&
PyExc_TypeError
},
{
"ValueError"
,
&
PyExc_ValueError
},
#ifdef MS_WINDOWS
{
"WindowsError"
,
&
PyExc_WindowsError
,
1
},
{
"WindowsError"
,
&
PyExc_WindowsError
},
#endif
{
"ZeroDivisionError"
,
&
PyExc_ZeroDivisionError
,
1
},
{
"ZeroDivisionError"
,
&
PyExc_ZeroDivisionError
},
{
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