[issue40664] Documentation error: itertools.dropwhile(is_even, itertools.count()) output

Nicolas Gimenez report at bugs.python.org
Sun May 17 15:16:27 EDT 2020


New submission from Nicolas Gimenez <n.gimenez66 at gmail.com>:

On this page:
https://docs.python.org/3/howto/functional.html
The example:

"itertools.dropwhile(is_even, itertools.count()) =>
  1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..."

is wrong. It should be:

"itertools.dropwhile(is_even, itertools.count()) =>
  1, 3, 5, 7, 9, ..."

----------
assignee: docs at python
components: Documentation
messages: 369146
nosy: docs at python, nicobao
priority: normal
severity: normal
status: open
title: Documentation error:  itertools.dropwhile(is_even, itertools.count()) output
versions: Python 3.8

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


More information about the Python-bugs-list mailing list