Home
last modified time | relevance | path

Searched refs:__length_hint__ (Results 1 – 14 of 14) sorted by relevance

/third_party/python/Lib/test/
Dtest_iterlen.py199 def __length_hint__(self): member in BadLengthHint
207 def __length_hint__(self): member in NoneLengthHint
Dlist_tests.py271 def __length_hint__(self): member in CommonTest.test_extend.CustomIter
Dtest_operator.py502 def __length_hint__(self): member in OperatorTestCase.test_length_hint.X
Dtest_set.py857 self.assertEqual(setiter.__length_hint__(), len(self.set))
/third_party/python/Lib/
Doperator.py205 hint = type(obj).__length_hint__
/third_party/python/Misc/NEWS.d/
D3.6.0a3.rst29 __length_hint__() of bytearray iterators no longer return a negative integer
D3.5.3rc1.rst410 __length_hint__() of bytearray iterators no longer return a negative integer
/third_party/python/Doc/library/
Doperator.rst248 actual length, then an estimate using :meth:`object.__length_hint__`, and
/third_party/python/Doc/c-api/
Dobject.rst317 actual length, then an estimate using :meth:`~object.__length_hint__`, and
/third_party/python/Objects/
Dabstract.c95 _Py_IDENTIFIER(__length_hint__); in PyObject_LengthHint()
/third_party/python/Tools/c-analyzer/
DTODO336 Objects/abstract.c:PyObject_LengthHint():PyId___length_hint__ _Py_IDENTIFIER(__length_hint__)
/third_party/python/Doc/whatsnew/
D3.4.rst452 * :meth:`~object.__length_hint__` is now part of the formal language
1161 specification for how the :meth:`~object.__length_hint__` special method should
/third_party/python/Doc/reference/
Ddatamodel.rst2411 .. method:: object.__length_hint__(self)
2417 ``__length_hint__`` method didn't exist at all. This method is purely an
/third_party/python/Misc/
DHISTORY3263 - Issue #19369: Optimized the usage of __length_hint__().
15246 - Issue #1242657: the __len__() and __length_hint__() calls in several tools
16019 - Issue #3689: The list reversed iterator now supports __length_hint__