_PyObject_LengthHint

The length hint function returns a non-negative value from o.__len__() or o.__length_hint__(). If those methods aren't found or return a negative value, then the defaultvalue is returned. If one of the calls fails, this function returns -1.

  1. Py_ssize_t _PyObject_LengthHint(PyObject* , Py_ssize_t )
    version(Python_2_6_Or_Later)
    extern (C)
    _PyObject_LengthHint
  2. Py_ssize_t _PyObject_LengthHint(PyObject* )

Meta