_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 )
  2. Py_ssize_t _PyObject_LengthHint(PyObject* )
    version(!Python_3_0_Or_Later && !Python_2_6_Or_Later && Python_2_5_Or_Later)
    extern (C)
    _PyObject_LengthHint

Meta