Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
d4d654e6
Commit
d4d654e6
authored
Mar 30, 2007
by
Collin Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1688274: add documentation for C-level class objects.
parent
dc3af53d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
Doc/api/concrete.tex
Doc/api/concrete.tex
+29
-0
No files found.
Doc/api/concrete.tex
View file @
d4d654e6
...
...
@@ -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