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
f07125ee
Kaydet (Commit)
f07125ee
authored
Ara 03, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
PyErr_Format() does not return a new reference; it always returns NULL.
This closes SF bug #488387.
üst
dbb53d99
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
exceptions.tex
Doc/api/exceptions.tex
+5
-7
No files found.
Doc/api/exceptions.tex
Dosyayı görüntüle @
f07125ee
...
...
@@ -121,11 +121,11 @@ for each thread.
\begin{cfuncdesc}
{
PyObject*
}{
PyErr
_
Format
}{
PyObject *exception,
const char *format,
\moreargs
}
This function sets the error indicator
.
\var
{
exception
}
should be a
Python exception (string or class, not an instance).
\var
{
format
}
should be a string, containing format codes, similar to
\cfunction
{
printf()
}
. The
\code
{
width.precision
}
before a format
code is parsed, but the width part is ignored.
This function sets the error indicator
and returns
\NULL
..
\var
{
exception
}
should be a Python exception (string or class, not
an instance).
\var
{
format
}
should be a string, containing format
codes, similar to
\cfunction
{
printf()
}
. The
\code
{
width.precision
}
before a format
code is parsed, but the width part is ignored.
\begin{tableii}
{
c|l
}{
character
}{
Character
}{
Meaning
}
\lineii
{
c
}{
Character, as an
\ctype
{
int
}
parameter
}
...
...
@@ -137,8 +137,6 @@ for each thread.
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}
\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