mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Minor clarification about the ob_size field.
This commit is contained in:
parent
cfc4902b2a
commit
9e1595e6e4
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue