Author cito
Recipients cito, georg.brandl
Date 2009-11-27.10:47:20
SpamBayes Score 0.0016185
Marked as misclassified No
Message-id <>
In the section "Using the batteries" of the "Idioms and Anti-Idioms in
Python" document
the reduce statement is used for summing up numbers as an example. I
think this is rather an anti-example, because Python already has a sum
function built-in, i.e. reduce(operator.add, nums)/len(nums) can be
written much simpler as sum(nums)/len(nums).
Date User Action Args
2009-11-27 10:47:22citosetrecipients: + cito, georg.brandl
2009-11-27 10:47:22citosetmessageid: <>
2009-11-27 10:47:21citolinkissue7402 messages
2009-11-27 10:47:20citocreate