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
57a5932f
Kaydet (Commit)
57a5932f
authored
Eyl 01, 2000
tarafından
Moshe Zadka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update documentation for PyErr_Format, because the function has changed.
Connected to patch 100895
üst
9bfd2bf5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
9 deletions
+19
-9
api.tex
Doc/api/api.tex
+19
-9
No files found.
Doc/api/api.tex
Dosyayı görüntüle @
57a5932f
...
@@ -882,15 +882,25 @@ You need not increment its reference count.
...
@@ -882,15 +882,25 @@ You need not increment its reference count.
\end{cfuncdesc}
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyErr
_
Format
}{
PyObject *exception,
\begin{cfuncdesc}
{
PyObject*
}{
PyErr
_
Format
}{
PyObject *exception,
const char *format, ...
}
const char *format,
\moreargs
}
This function sets the error indicator using a printf-style format
This function sets the error indicator.
string. The first argument specifies the exception type and the
\var
{
exception
}
should be a Python object.
second argument specifies the format string for the exception. Any
\var
{
fmt
}
should be a string, containing format codes, similar to
subsequent arguments are converted to output by the C library's
\cfunction
{
printf
}
. The
\code
{
width.precision
}
before a format code
\cfunction
{
vsprintf()
}
function. The buffer used internally by
is parsed, but the width part is ignored.
\cfunction
{
PyErr
_
Format()
}
is 500 bytes long. The caller is
responsible for guaranteeing that the formatted output does not
\begin{tableii}
{
c|l
}{
character
}{
Character
}{
Meaning
}
overflow the buffer.
\lineii
{
c
}{
Character, as an
\ctype
{
int
}
parameter
}
\lineii
{
d
}{
Number in decimal, as an
\ctype
{
int
}
parameter
}
\lineii
{
x
}{
Number in hexadecimal, as an
\ctype
{
int
}
parameter
}
\lineii
{
x
}{
A string, as a
\ctype
{
char *
}
parameter
}
\end{tableii}
An unrecognized format character causes all the rest of
the format string to be copied as-is to the result string,
and any extra arguments discarded.
A new reference is returned, which is owned by the caller.
\end{cfuncdesc}
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyErr
_
SetNone
}{
PyObject *type
}
\begin{cfuncdesc}
{
void
}{
PyErr
_
SetNone
}{
PyObject *type
}
...
...
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