We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b38e2b6 commit a995a2dCopy full SHA for a995a2d
1 file changed
Include/listobject.h
@@ -21,7 +21,16 @@ extern "C" {
21
22
typedef struct {
23
PyObject_VAR_HEAD
24
+ /* Vector of pointers to list elements. list[0] is ob_item{0], etc. */
25
PyObject **ob_item;
26
+
27
+ /* ob_item contains space for 'allocated' elements. The number
28
+ * currently in use is ob_size.
29
+ * Invariants:
30
+ * 0 <= ob_size <= allocated
31
+ * len(list) == ob_size
32
+ * ob_item == NULL implies ob_size == allocated == 0
33
+ */
34
int allocated;
35
} PyListObject;
36
0 commit comments