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

2020-05-17 Thread SilentGhost


SilentGhost  added the comment:

Did you try running that? The documentation is correct, dropwhile works 
differently than filter.

--
nosy: +SilentGhost
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-05-17 Thread Nicolas Gimenez


Nicolas Gimenez  added the comment:

Relase: 0.32
Lang: English
Python version: 3.8.3

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-05-17 Thread Nicolas Gimenez


New submission from Nicolas Gimenez :

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@python
components: Documentation
messages: 369146
nosy: docs@python, nicobao
priority: normal
severity: normal
status: open
title: Documentation error:  itertools.dropwhile(is_even, itertools.count()) 
output
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com