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
9e1595e6
Commit
9e1595e6
authored
Mar 07, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor clarification about the ob_size field.
parent
cfc4902b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Doc/api/newtypes.tex
Doc/api/newtypes.tex
+3
-3
No files found.
Doc/api/newtypes.tex
View file @
9e1595e6
...
...
@@ -461,9 +461,9 @@ Foo_Type.ob_type = &PyType_Type;
example, long ints use a negative
\member
{
ob
_
size
}
to indicate a
negative number, and N is
\code
{
abs(
\member
{
ob
_
size
}
)
}
there. Also,
the presence of an
\member
{
ob
_
size
}
field in the instance layout
doesn't mean that the
type is variable-length (for example, the list
type has fixed-length instances, yet those instances have a
meaningful
\member
{
ob
_
size
}
field).
doesn't mean that the
instance structure is variable-length (for
example, the structure for the list type has fixed-length instances,
yet those instances have a
meaningful
\member
{
ob
_
size
}
field).
The basic size includes the fields in the instance declared by the
macro
\csimplemacro
{
PyObject
_
HEAD
}
or
...
...
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