[issue22868] Minor error in the example of filter()

2014-11-14 Thread Yi Bai
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

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Roundup Robot
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

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Georg Brandl
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 ___

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22868 ___

[issue22868] Minor error in the example of filter()

2014-11-14 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22868 ___ ___

[issue22868] Minor error in the example of filter()

2014-11-13 Thread Yi Bai
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

[issue22868] Minor error in the example of filter()

2014-11-13 Thread Georg Brandl
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