[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Leonhard Vogt
Changes by Leonhard Vogt leonhard.v...@gmx.ch: Removed file: http://bugs.python.org/file18223/functions.rst.patch4.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7447

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Leonhard Vogt
Leonhard Vogt leonhard.v...@gmx.ch added the comment: Thank you Georg, I updated the patch Ezio, wouldn't start=0 in the signature imply that sum accepted a keyword argument? I read Documenting Python (4.3) but am not sure about the distinction of default values or keyword arbuments. sum

[issue7447] Sum() doc and behavior mismatch

2010-07-27 Thread Leonhard Vogt
Leonhard Vogt leonhard.v...@gmx.ch added the comment: another patch: - moved string case to first position, i think it's the most important. - reworded (shortened) list case. - wrapped for 80 caracter lines. still using itertools.itertools.chain.from_iterable as mentioned in previous message

[issue7447] Sum() doc and behavior mismatch

2010-07-26 Thread Leonhard Vogt
Leonhard Vogt leonhard.v...@gmx.ch added the comment: Thank you. I think the specific list of list example is better for the sum documentation because lists support the + operator. I don't think that someone would consider using sum for chaining arbitrary iterables. What about a concise

[issue7447] Sum() doc and behavior mismatch

2010-05-18 Thread Leonhard Vogt
Leonhard Vogt leonhard.v...@gmx.ch added the comment: I changed the documentation regarding string not allowed as start argument and performance I included the list concatenation with itertools.chain from http://groups.google.com/group/comp.lang.python/msg/33e764d0ac41826a patch is based