_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.

version(Python_2_6_Or_Later)
_PyObject_LengthHint

Meta