PyObject_Length() returns a P_ssize_t, not an int. Use a Py_ssize_t to avoid overflow.
Source files for various builtin objects