Searched refs:__length_hint__ (Results 1 – 14 of 14) sorted by relevance
199 def __length_hint__(self): member in BadLengthHint207 def __length_hint__(self): member in NoneLengthHint
271 def __length_hint__(self): member in CommonTest.test_extend.CustomIter
502 def __length_hint__(self): member in OperatorTestCase.test_length_hint.X
857 self.assertEqual(setiter.__length_hint__(), len(self.set))
205 hint = type(obj).__length_hint__
29 __length_hint__() of bytearray iterators no longer return a negative integer
410 __length_hint__() of bytearray iterators no longer return a negative integer
248 actual length, then an estimate using :meth:`object.__length_hint__`, and
317 actual length, then an estimate using :meth:`~object.__length_hint__`, and
95 _Py_IDENTIFIER(__length_hint__); in PyObject_LengthHint()
336 Objects/abstract.c:PyObject_LengthHint():PyId___length_hint__ _Py_IDENTIFIER(__length_hint__)
452 * :meth:`~object.__length_hint__` is now part of the formal language1161 specification for how the :meth:`~object.__length_hint__` special method should
2411 .. method:: object.__length_hint__(self)2417 ``__length_hint__`` method didn't exist at all. This method is purely an
3263 - Issue #19369: Optimized the usage of __length_hint__().15246 - Issue #1242657: the __len__() and __length_hint__() calls in several tools16019 - Issue #3689: The list reversed iterator now supports __length_hint__