On Jan 6, 2008 1:19 AM, hashcollision <[EMAIL PROTECTED]> wrote:
> I request the addition of prod():
>
> def prod(seq):
>      s = 1
>      for x in seq:
>          s *= x
>
> prod is always as useful as sum()

No it isn't.

This was discussed extensively at the time sum() was proposed and
accepted, and it was found that product() has much less usage than
sum() -- so much less so that it's not worth adding.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to