Skip to content

Commit

Permalink
python#17178: update any()/all() docstrings to document their behavio…
Browse files Browse the repository at this point in the history
…r with empty iterables. Patch by Ankur Ankan.
  • Loading branch information
ezio-melotti committed Feb 15, 2013
1 parent 38b8254 commit b19ed57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Erik Andersén
Oliver Andrich
Ross Andrus
Jérémy Anger
Ankur Ankan
Jon Anglin
Heidi Annexstad
Éric Araujo
Expand Down
6 changes: 4 additions & 2 deletions Python/bltinmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@ builtin_all(PyObject *self, PyObject *v)
PyDoc_STRVAR(all_doc,
"all(iterable) -> bool\n\
\n\
Return True if bool(x) is True for all values x in the iterable.");
Return True if bool(x) is True for all values x in the iterable.\n\
If the iterable is empty, return True.");

static PyObject *
builtin_any(PyObject *self, PyObject *v)
Expand Down Expand Up @@ -304,7 +305,8 @@ builtin_any(PyObject *self, PyObject *v)
PyDoc_STRVAR(any_doc,
"any(iterable) -> bool\n\
\n\
Return True if bool(x) is True for any x in the iterable.");
Return True if bool(x) is True for any x in the iterable.\n\
If the iterable is empty, return False.");

static PyObject *
builtin_ascii(PyObject *self, PyObject *v)
Expand Down

0 comments on commit b19ed57

Please sign in to comment.