List values

You can either directly query them from the list, or take the more verbose route through the items:

>>> document.list('shopping_list').required_string_values() # Note the plural here
>>> [item.required_string_value() for item in document.list('shopping_list').items()]

An important gotcha here is that in the shortcut version required string values does not mean there have to be items in the list, but only that items need to have a value. If you look at the non-shortcut version this is obvious, but for the shortcut version it's important to keep in mind.

The optional_* variant of this accessor produces the less commonly needed list that might contain None values:

>>> document.list('list_with_empty_spacer_items').optional_string_values()

Next page: Keys and Comments