(original) (raw)

changeset: 82216:1d4849f9e37d branch: 3.2 parent: 82212:8753a3be4a3c user: Ezio Melotti ezio.melotti@gmail.com date: Fri Feb 15 23:35:14 2013 +0200 files: Misc/ACKS Python/bltinmodule.c description: #17178: update any()/all() docstrings to document their behavior with empty iterables. Patch by Ankur Ankan. diff -r 8753a3be4a3c -r 1d4849f9e37d Misc/ACKS --- a/Misc/ACKS Fri Feb 15 21:27:18 2013 +0100 +++ b/Misc/ACKS Fri Feb 15 23:35:14 2013 +0200 @@ -37,6 +37,7 @@ Oliver Andrich Ross Andrus Jérémy Anger +Ankur Ankan Jon Anglin Heidi Annexstad Éric Araujo diff -r 8753a3be4a3c -r 1d4849f9e37d Python/bltinmodule.c --- a/Python/bltinmodule.c Fri Feb 15 21:27:18 2013 +0100 +++ b/Python/bltinmodule.c Fri Feb 15 23:35:14 2013 +0200 @@ -262,7 +262,8 @@ 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) @@ -304,7 +305,8 @@ 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) /ezio.melotti@gmail.com