[issue2138] Add a factorial function
Terry J. Reedy
report at bugs.python.org
Fri Apr 4 06:59:59 CEST 2008
Terry J. Reedy <tjreedy at udel.edu> added the comment:
The fact that other languages have factorial does not in itself impress
me. What is the actual use case other than illustrating computational
induction (whether by iteration or recursion) and for calculating
binomial coefficients?
I don't really like the idea of making factorial a method for the same
reason that exp, sin, ....... are not methods of float: there is no end.
People should be able to learn basic classes without specialized
functions attached.
----------
nosy: +tjreedy
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2138>
__________________________________
More information about the Python-bugs-list
mailing list