Ezio Melotti added the comment:
Fixed, thanks for the report and the patch!
--
assignee: -> ezio.melotti
nosy: +ezio.melotti
resolution: -> fixed
stage: -> committed/rejected
status: open -> closed
versions: -Python 2.6, Python 3.1, Python 3.5
___
Roundup Robot added the comment:
New changeset 124237eb5de9 by Ezio Melotti in branch '2.7':
#17255: test short-circuiting behavior of any()/all(). Patch by Wim Glenn.
http://hg.python.org/cpython/rev/124237eb5de9
New changeset 34b7240d678b by Ezio Melotti in branch '3.2':
#17255: test short-ci
New submission from wim glenn:
The docs http://docs.python.org/2/library/functions.html#all provide some
equivalent code for all builtin (and similarly for any):
def all(iterable):
for element in iterable:
if not element:
return False
return True
The behaviour is cl