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
Amazingly on time thanks to the quarter being over. You can't see me jumping
up and down in joy over that fact, but I am while trying not to hit the ceiling
as I do it (for those of you who have never met me, I'm 6'6" tall, so jumping
in a room is not always the smartest thing for me, especiall