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
4873fb2b
Kaydet (Commit)
4873fb2b
authored
Agu 14, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Improve markup in PyUnicode_RichCompare.
üst
757ea27b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
19 deletions
+14
-19
concrete.tex
Doc/api/concrete.tex
+14
-19
No files found.
Doc/api/concrete.tex
Dosyayı görüntüle @
4873fb2b
...
...
@@ -1564,25 +1564,20 @@ They all return \NULL{} or \code{-1} if an exception occurs.
PyObject *right,
int op
}
% This entry could use some polishing - my TeX is too
% rusty these days... (MAL)
Rich compare two strings and return one of the following:
\begin{verbatim}
- NULL in case an exception was raised
- Py
_
True or Py
_
False for successfuly comparisons
- Py
_
NotImplemented in case the type combination is unknown
\end{verbatim}
Note that Py
_
EQ and Py
_
NE comparisons can cause a UnicodeWarning in
case the conversion of the arguments to Unicode fails with a
UnicodeDecodeError.
Possible values for
\var
{
op
}
:
\begin{verbatim}
Py
_
GT, Py
_
GE, Py
_
EQ, Py
_
NE, Py
_
LT, Py
_
LE
\end{verbatim}
Rich compare two unicode strings and return one of the following:
\begin{itemize}
\item
\code
{
NULL
}
in case an exception was raised
\item
\constant
{
Py
_
True
}
or
\constant
{
Py
_
False
}
for successful comparisons
\item
\constant
{
Py
_
NotImplemented
}
in case the type combination is unknown
\end{itemize}
Note that
\constant
{
Py
_
EQ
}
and
\constant
{
Py
_
NE
}
comparisons can cause a
\exception
{
UnicodeWarning
}
in case the conversion of the arguments to
Unicode fails with a
\exception
{
UnicodeDecodeError
}
.
Possible values for
\var
{
op
}
are
\constant
{
Py
_
GT
}
,
\constant
{
Py
_
GE
}
,
\constant
{
Py
_
EQ
}
,
\constant
{
Py
_
NE
}
,
\constant
{
Py
_
LT
}
, and
\constant
{
Py
_
LE
}
.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyUnicode
_
Format
}{
PyObject *format,
...
...
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