classification
Title: Clarify empty iterable result in any/all.__doc__, as in manual
Type: enhancement Stage: resolved
Components: Documentation Versions: Python 3.2, Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ezio.melotti Nosy List: Ankur.Ankan, docs@python, eric.araujo, ezio.melotti, py.user, python-dev, terry.reedy
Priority: normal Keywords: easy, patch

Created on 2013-02-11 05:47 by py.user, last changed 2013-02-15 21:40 by ezio.melotti. 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
2013-02-15 21:40:16ezio.melottisetstatus: open -> closed

assignee: docs@python -> ezio.melotti
components: + Documentation, - Interpreter Core

nosy: + ezio.melotti
messages: + msg182178
resolution: fixed
stage: needs patch -> resolved
2013-02-15 21:38:37python-devsetnosy: + python-dev
messages: + msg182177
2013-02-15 21:12:22Ankur.Ankansetfiles: + patch.diff
2013-02-15 21:07:48Ankur.Ankansetfiles: - patch.diff
2013-02-15 21:06:57Ankur.Ankansetfiles: + patch.diff
keywords: + patch
2013-02-15 20:47:18terry.reedysetnosy: + terry.reedy

messages: + msg182171
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:14Ankur.Ankansetmessages: + msg182157
2013-02-15 18:44:35Ankur.Ankansetnosy: + Ankur.Ankan
messages: + msg182156
2013-02-15 17:30:48eric.araujosetcomponents: + Interpreter Core, - Documentation
versions: + Python 2.7, Python 3.2, Python 3.4
keywords: + easy
nosy: + eric.araujo

messages: + msg182151
stage: needs patch
2013-02-11 05:47:24py.usercreate