len function

int len(
  1. PyObject object
)

Python len(object). Objects without a length raise TypeError.

Implementation

int len(PyObject object) => checked(() => api.PyObject_Size(object.ptr));