[issue17255] test_any and test_all should validate short-circuiting behaviour

2013-02-21 Thread Ezio Melotti
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 ___

[issue17255] test_any and test_all should validate short-circuiting behaviour

2013-02-21 Thread Roundup Robot
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

[issue17255] test_any and test_all should validate short-circuiting behaviour

2013-02-20 Thread wim glenn
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