diff options
Diffstat (limited to 'Include/listobject.h')
-rw-r--r-- | Include/listobject.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/listobject.h b/Include/listobject.h index e4867a5ed0..0999a82187 100644 --- a/Include/listobject.h +++ b/Include/listobject.h @@ -31,6 +31,9 @@ typedef struct { * len(list) == ob_size * ob_item == NULL implies ob_size == allocated == 0 * list.sort() temporarily sets allocated to -1 to detect mutations. + * + * Items must normally not be NULL, except during construction when + * the list is not yet visible outside the function that builds it. */ int allocated; } PyListObject; |