Commit b19ed57d authored by Ezio Melotti's avatar Ezio Melotti

#17178: update any()/all() docstrings to document their behavior with empty...

#17178: update any()/all() docstrings to document their behavior with empty iterables.  Patch by Ankur Ankan.
parent 38b82543
...@@ -37,6 +37,7 @@ Erik Andersén ...@@ -37,6 +37,7 @@ Erik Andersén
Oliver Andrich Oliver Andrich
Ross Andrus Ross Andrus
Jérémy Anger Jérémy Anger
Ankur Ankan
Jon Anglin Jon Anglin
Heidi Annexstad Heidi Annexstad
Éric Araujo Éric Araujo
......
...@@ -262,7 +262,8 @@ builtin_all(PyObject *self, PyObject *v) ...@@ -262,7 +262,8 @@ builtin_all(PyObject *self, PyObject *v)
PyDoc_STRVAR(all_doc, PyDoc_STRVAR(all_doc,
"all(iterable) -> bool\n\ "all(iterable) -> bool\n\
\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 * static PyObject *
builtin_any(PyObject *self, PyObject *v) builtin_any(PyObject *self, PyObject *v)
...@@ -304,7 +305,8 @@ builtin_any(PyObject *self, PyObject *v) ...@@ -304,7 +305,8 @@ builtin_any(PyObject *self, PyObject *v)
PyDoc_STRVAR(any_doc, PyDoc_STRVAR(any_doc,
"any(iterable) -> bool\n\ "any(iterable) -> bool\n\
\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 * static PyObject *
builtin_ascii(PyObject *self, PyObject *v) builtin_ascii(PyObject *self, PyObject *v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment