[issue29433] any, all and sum should accept variadic args

sedrubal report at bugs.python.org
Fri Feb 3 06:43:19 EST 2017


New submission from sedrubal:

any, all and sum (and maybe some other functions) should accept variadic args. It should be possible to do things like this:

>>> any(True, False, True)
True
>>> all(True, False, True)
False
>>> sum(1, 2, 3)
6

This was compliant to max and min behaviour:

>>> max(1, 2, 3)
3
>>> min(1, 2, 3)
1

----------
messages: 286859
nosy: sedrubal
priority: normal
severity: normal
status: open
title: any, all and sum should accept variadic args
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29433>
_______________________________________


More information about the Python-bugs-list mailing list