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
d4a01180
Kaydet (Commit)
d4a01180
authored
Mar 30, 2007
tarafından
Collin Winter
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Bug #1688274: add documentation for C-level class objects.
üst
93c33680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
concrete.tex
Doc/api/concrete.tex
+29
-0
No files found.
Doc/api/concrete.tex
Dosyayı görüntüle @
d4a01180
...
...
@@ -2162,6 +2162,35 @@ def PyDict_MergeFromSeq2(a, seq2, override):
\section
{
Other Objects
\label
{
otherObjects
}}
\subsection
{
Class Objects
\label
{
classObjects
}}
\obindex
{
class
}
Note that the class objects described here represent old-style classes,
which will go away in Python 3. When creating new types for extension
modules, you will want to work with type objects (section
\ref
{
typeObjects
}
).
\begin{ctypedesc}
{
PyClassObject
}
The C structure of the objects used to describe built-in classes.
\end{ctypedesc}
\begin{cvardesc}
{
PyObject*
}{
PyClass
_
Type
}
This is the type object for class objects; it is the same object as
\code
{
types.ClassType
}
in the Python layer.
\withsubitem
{
(in module types)
}{
\ttindex
{
ClassType
}}
\end{cvardesc}
\begin{cfuncdesc}
{
int
}{
PyClass
_
Check
}{
PyObject *o
}
Return true if the object
\var
{
o
}
is a class object, including
instances of types derived from the standard class object. Return
false in all other cases.
\end{cfuncdesc}
\begin{cfuncdesc}
{
int
}{
PyClass
_
IsSubclass
}{
PyObject *klass, PyObject *base
}
Return true if
\var
{
klass
}
is a subclass of
\var
{
base
}
. Return false in
all other cases.
\end{cfuncdesc}
\subsection
{
File Objects
\label
{
fileObjects
}}
\obindex
{
file
}
...
...
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