Issue 17178: Clarify empty iterable result in any/all.doc, as in manual (original) (raw)

Created on 2013-02-11 05:47 by py.user, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
patch.diff Ankur.Ankan,2013-02-15 21:12 review
Messages (7)
msg181873 - (view) Author: py.user (py.user) * Date: 2013-02-11 05:47
>>> help(all) " all(...) all(iterable) -> bool Return True if bool(x) is True for all values x in the iterable. " >>> all([]) True >>> bool() False >>>
msg182151 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2013-02-15 17:30
If someone wants to write the patch for this, feel free to ask (here or on the core-mentorship friendly mailing list) if you need help finding the right C file or anything else.
msg182156 - (view) Author: Ankur Ankan (Ankur.Ankan) * Date: 2013-02-15 18:44
I am a beginner and want to write the patch for this issue, so please help me find the right C file. Thanks.
msg182157 - (view) Author: Ankur Ankan (Ankur.Ankan) * Date: 2013-02-15 18:51
I guess I have found it. It's bltinmodule.c .
msg182171 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2013-02-15 20:47
Titles should fit in the box if possible, and this can ;-).
msg182177 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-02-15 21:38
New changeset 0f7eec78569c by Ezio Melotti in branch '2.7': #17178: update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan. http://hg.python.org/cpython/rev/0f7eec78569c New changeset 1d4849f9e37d by Ezio Melotti in branch '3.2': #17178: update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan. http://hg.python.org/cpython/rev/1d4849f9e37d New changeset 34cfe145b286 by Ezio Melotti in branch '3.3': #17178: merge with 3.2. http://hg.python.org/cpython/rev/34cfe145b286 New changeset 168efd87e051 by Ezio Melotti in branch 'default': #17178: merge with 3.3. http://hg.python.org/cpython/rev/168efd87e051
msg182178 - (view) Author: Ezio Melotti (ezio.melotti) * (Python committer) Date: 2013-02-15 21:40
Fixed, thanks for the patch!
History
Date User Action Args
2022-04-11 14:57:41 admin set github: 61380
2013-02-15 21:40:16 ezio.melotti set status: open -> closedassignee: docs@python -> ezio.melotticomponents: + Documentation, - Interpreter Corenosy: + ezio.melottimessages: + resolution: fixedstage: needs patch -> resolved
2013-02-15 21:38:37 python-dev set nosy: + python-devmessages: +
2013-02-15 21:12:22 Ankur.Ankan set files: + patch.diff
2013-02-15 21:07:48 Ankur.Ankan set files: - patch.diff
2013-02-15 21:06:57 Ankur.Ankan set files: + patch.diffkeywords: + patch
2013-02-15 20:47:18 terry.reedy set nosy: + terry.reedymessages: + title: In all.__doc__ and any.__doc__ need to clarify the behaviour with an empty iterable like in documentation -> Clarify empty iterable result in any/all.__doc__, as in manual
2013-02-15 18:51:14 Ankur.Ankan set messages: +
2013-02-15 18:44:35 Ankur.Ankan set nosy: + Ankur.Ankanmessages: +
2013-02-15 17:30:48 eric.araujo set components: + Interpreter Core, - Documentationversions: + Python 2.7, Python 3.2, Python 3.4keywords: + easynosy: + eric.araujomessages: + stage: needs patch
2013-02-11 05:47:24 py.user create