c Mapping Protocol See also :cPyObject_GetItem, :cPyObject_SetItem and :cPyObject_DelItem. pair: built-in function; len Returns the number of keys in object o on success, and -1 on failure. This is equivalent to the Python expression len(o).