Yi Bai added the comment:
Ah yes. You are right, Georg.
And as you suggested, it might be better to remove this ambiguity, for people
with poor parsing skills like me. :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22868
Roundup Robot added the comment:
New changeset 5dd835edde1e by Georg Brandl in branch '2.7':
Closes #22868: make example less ambiguous.
https://hg.python.org/cpython/rev/5dd835edde1e
--
nosy: +python-dev
resolution: - fixed
stage: - resolved
status: open - closed
Georg Brandl added the comment:
Done. Thanks for the report!
--
resolution: fixed -
stage: resolved -
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22868
___
Changes by Georg Brandl ge...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22868
___
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22868
___
___
New submission from Yi Bai:
Hi, I suppose there is a minor error in the example of the filter() function in
5.1.3 part of the document.
--
filter(function, sequence) returns a sequence consisting of those items from
the sequence
Georg Brandl added the comment:
For me the text is correct. However, it depends on parsing the English
sentence in the right way, which can be confusing. The prose means not
(divisible by 2 or 3) which is equivalent to not divisible by 2 and not
divisible by 3, therefore the Python code has