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
d04038d9
Kaydet (Commit)
d04038d9
authored
Haz 29, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update comments relating to the removal of the -X option and of string
exceptions in the interpreter and standard library.
üst
c6e72e0b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
16 deletions
+11
-16
api.tex
Doc/api/api.tex
+11
-16
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
d04038d9
...
...
@@ -938,16 +938,15 @@ It may be called without holding the interpreter lock.
This utility function creates and returns a new exception object. The
\var
{
name
}
argument must be the name of the new exception, a C string
of the form
\code
{
module.class
}
. The
\var
{
base
}
and
\var
{
dict
}
arguments are normally
\NULL
{}
.
Normally, t
his creates a
\var
{
dict
}
arguments are normally
\NULL
{}
.
T
his creates a
class object derived from the root for all exceptions, the built-in
name
\exception
{
Exception
}
(accessible in C as
\cdata
{
PyExc
_
Exception
}
). In this case the
\member
{__
module
__}
attribute of the new class is set to the first part (up to the last
dot) of the
\var
{
name
}
argument, and the class name is set to the last
part (after the last dot). The
\var
{
base
}
argument can be used to specify an alternate base class.
The
\var
{
dict
}
argument can be used to specify a dictionary of class
variables and methods.
\cdata
{
PyExc
_
Exception
}
). The
\member
{__
module
__}
attribute of the
new class is set to the first part (up to the last dot) of the
\var
{
name
}
argument, and the class name is set to the last part (after
the last dot). The
\var
{
base
}
argument can be used to specify an
alternate base class. The
\var
{
dict
}
argument can be used to specify
a dictionary of class variables and methods.
\end{cfuncdesc}
...
...
@@ -991,21 +990,17 @@ completeness, here are all the variables:
Note:
\begin{description}
\item
[(1)]
This is a base class for other standard exceptions. If the
\code
{
-X
}
interpreter option is used, these will be tuples
containing the string exceptions which would have otherwise been
subclasses.
This is a base class for other standard exceptions.
\end{description}
\section
{
Deprecation of String Exceptions
}
The
\code
{
-X
}
command-line option will be removed in Python 1.6. All
exceptions built into Python or provided in the standard library will
All exceptions built into Python or provided in the standard library
are derived from
\exception
{
Exception
}
.
\withsubitem
{
(built-in exception)
}{
\ttindex
{
Exception
}}
be classes derived from
\exception
{
Exception
}
.
String exceptions
will still be
supported in the interpreter to allow
String exceptions
are still
supported in the interpreter to allow
existing code to run unmodified, but this will also change in a future
release.
...
...
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