Py 2.6 changes

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Sep 2 01:47:03 CEST 2008


On Mon, 01 Sep 2008 12:15:53 -0700, bearophileHUGS wrote:

> Now math has factorial:
> http://docs.python.org/dev/library/math.html#math.factorial Seen how
> reduce() is removed from Python 3 (I know it's in itertools), and seeing
> that for me to write a productory() function was the first usage I have
> had for reduce, years ago, I think the math module can gain a
> productory() function too.

productory() -- I don't know that function, and googling mostly comes up 
with retail product searches. Do you mean product(), the analog of sum() 
except that it multiplies instead of adds? Or perhaps you mean some sort 
of generalization of factorial().



-- 
Steven



More information about the Python-list mailing list