Nick Coghlan <[EMAIL PROTECTED]> writes:
> That last sentence isn't quite true. With an appropriate second
> argument, sum can be used to sum any sequence (even one containing
> strings):
>
> Py> class additive_identity(object):
> ... def __add__(self, other):
> ... return other
> ...
==> s
[Paul Moore]
On Thu, 17 Mar 2005 18:21:33 -0800, Brett C. <[EMAIL PROTECTED]> wrote:
2.4.1 should be out soon
Python 2.4.1c1 is out. Very shortly c2 will be released. Assuming no major
issues come up, 2.4 final will be out.
You probably mean somet
[Nick Coghlan]
-
sum() semantics discussed
-
Guido's blog entry on `the fate of reduce() in Python 3000`_ (which
reiterated Guido's plan to cut map(), reduce(), filter() and lambdas (what
about zip()?) caused a huge discussion on whether sum() worke
On Thu, 17 Mar 2005 18:21:33 -0800, Brett C. <[EMAIL PROTECTED]> wrote:
>
> 2.4.1 should be out soon
>
> Python 2.4.1c1 is out. Very shortly c2 will be released. Assuming no major
> issues come up, 2.4 final will be out.
You probably mean somethi
-
sum() semantics discussed
-
Guido's blog entry on `the fate of reduce() in Python 3000`_ (which
reiterated Guido's plan to cut map(), reduce(), filter() and lambdas
(what about zip()?) caused a huge discussion on whether sum() worked the
best way