[issue37913] Document that __length_hint__ may return NotImplemented

Jeroen Demeyer report at bugs.python.org
Thu Aug 22 06:17:07 EDT 2019


New submission from Jeroen Demeyer <jeroen.k.demeyer at gmail.com>:

The special method __length_hint__ can return NotImplemented. In this case, the result is as if the __length_hint__ method didn't exist at all. This behaviour is implemented and tested but not documented.

----------
assignee: docs at python
components: Documentation
messages: 350180
nosy: docs at python, jdemeyer
priority: normal
severity: normal
status: open
title: Document that __length_hint__ may return NotImplemented
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37913>
_______________________________________


More information about the Python-bugs-list mailing list