Change by sedrubal :
--
nosy: +sedrubal
___
Python tracker
<https://bugs.python.org/issue31155>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by sedrubal :
--
nosy: +sedrubal
___
Python tracker
<https://bugs.python.org/issue13033>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by sedrubal :
--
nosy: +sedrubal
___
Python tracker
<https://bugs.python.org/issue20779>
___
___
Python-bugs-list mailing list
Unsubscribe:
sedrubal added the comment:
What is the reason for this start parameter? Why will sum not just use the
first entry of the input sequence?
I think at least a error message that points programmers into the right
direction was very helpful.
--
nosy: +sedrubal
sedrubal added the comment:
What is the problem with using the patch by moritz
(https://bugs.python.org/issue14156#msg162342) and change the unit test to this:
class TestFileTypeWB(TempDirMixin, ParserTestCase):
...
successes = [
...,
('-x - -', NS(x=sys.std
sedrubal added the comment:
Thanks for your answers and for showing the issue with sum.
I think this would make python just a bit more sexier as it already is ;) Are
there any other disadvantages (performance, ...)?
Do you think I should send a mail to the ideas list
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